Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ecbcf6

Browse files
committed
[Console] Fix incomplete output mock.
1 parent 9714831 commit 6ecbcf6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/Console/Tests/Helper/DumperTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ public static function tearDownAfterClass(): void
3737
*/
3838
public function testInvoke($variable)
3939
{
40-
$dumper = new Dumper($this->getMockBuilder(OutputInterface::class)->getMock());
40+
$output = $this->getMockBuilder(OutputInterface::class)->getMock();
41+
$output->method('isDecorated')->willReturn(false);
42+
43+
$dumper = new Dumper($output);
4144

4245
$this->assertDumpMatchesFormat($dumper($variable), $variable);
4346
}

0 commit comments

Comments
 (0)