-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 4.4: Use class const in test
- Loading branch information
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,6 @@ | |
use Symfony\Component\Console\Tests\Fixtures\DummyOutput; | ||
|
||
/** | ||
* Console logger test. | ||
* | ||
* @author Kévin Dunglas <[email protected]> | ||
* @author Jordi Boggiano <[email protected]> | ||
*/ | ||
|
@@ -157,9 +155,9 @@ public function testContextReplacement() | |
public function testObjectCastToString() | ||
{ | ||
if (method_exists($this, 'createPartialMock')) { | ||
$dummy = $this->createPartialMock('Symfony\Component\Console\Tests\Logger\DummyTest', ['__toString']); | ||
$dummy = $this->createPartialMock(DummyTest::class, ['__toString']); | ||
} else { | ||
$dummy = $this->createPartialMock('Symfony\Component\Console\Tests\Logger\DummyTest', ['__toString']); | ||
$dummy = $this->createPartialMock(DummyTest::class, ['__toString']); | ||
} | ||
$dummy->method('__toString')->willReturn('DUMMY'); | ||
|
||
|