Skip to content

Commit

Permalink
Merge branch '4.4' into 5.1
Browse files Browse the repository at this point in the history
* 4.4:
  Use class const in test
  • Loading branch information
jderusse committed Jan 22, 2021
2 parents d3e8303 + ed39fc8 commit 8a7755b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tests/Logger/ConsoleLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]>
*/
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 8a7755b

Please sign in to comment.