[Console] Fix incomplete output mock.
This commit is contained in:
parent
97148313fe
commit
6ecbcf6f22
@ -37,7 +37,10 @@ class DumperTest extends TestCase
|
||||
*/
|
||||
public function testInvoke($variable)
|
||||
{
|
||||
$dumper = new Dumper($this->getMockBuilder(OutputInterface::class)->getMock());
|
||||
$output = $this->getMockBuilder(OutputInterface::class)->getMock();
|
||||
$output->method('isDecorated')->willReturn(false);
|
||||
|
||||
$dumper = new Dumper($output);
|
||||
|
||||
$this->assertDumpMatchesFormat($dumper($variable), $variable);
|
||||
}
|
||||
|
Reference in New Issue
Block a user