[Console] Fix incomplete output mock.

This commit is contained in:
Alexander M. Turek 2019-08-16 01:33:50 +02:00
parent 97148313fe
commit 6ecbcf6f22

View File

@ -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);
}