Show output when test fails to resolve
parent
c440b4594a
commit
d853337616
|
@ -130,7 +130,13 @@ class InstallerTest extends TestCase
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$output = null;
|
||||||
$io = $this->getMock('Composer\IO\IOInterface');
|
$io = $this->getMock('Composer\IO\IOInterface');
|
||||||
|
$io->expects($this->any())
|
||||||
|
->method('write')
|
||||||
|
->will($this->returnCallback(function ($text, $newline) use (&$output) {
|
||||||
|
$output .= $text . ($newline ? "\n":"");
|
||||||
|
}));
|
||||||
|
|
||||||
$composer = FactoryMock::create($io, $composer);
|
$composer = FactoryMock::create($io, $composer);
|
||||||
|
|
||||||
|
@ -174,7 +180,7 @@ class InstallerTest extends TestCase
|
||||||
$installer->setDevMode($dev)->setUpdate($update);
|
$installer->setDevMode($dev)->setUpdate($update);
|
||||||
|
|
||||||
$result = $installer->run();
|
$result = $installer->run();
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result, $output);
|
||||||
|
|
||||||
$expectedInstalled = isset($options['install']) ? $options['install'] : array();
|
$expectedInstalled = isset($options['install']) ? $options['install'] : array();
|
||||||
$expectedUpdated = isset($options['update']) ? $options['update'] : array();
|
$expectedUpdated = isset($options['update']) ? $options['update'] : array();
|
||||||
|
|
Loading…
Reference in New Issue