[Console] fix assertion in testGetOptionDefaults

The default values expected n the test were not exactly the same as what is actually returned.
This commit is contained in:
Arnaud Kleinpeter 2015-02-17 14:04:06 +01:00
parent 31bfc9508b
commit 06a42e12e2
1 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ class InputDefinitionTest extends \PHPUnit_Framework_TestCase
new InputOption('foo7', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, '', array(1, 2)),
));
$defaults = array(
'foo1' => null,
'foo1' => false,
'foo2' => null,
'foo3' => 'default',
'foo4' => null,
@ -349,7 +349,7 @@ class InputDefinitionTest extends \PHPUnit_Framework_TestCase
'foo6' => array(),
'foo7' => array(1, 2),
);
$this->assertEquals($defaults, $definition->getOptionDefaults(), '->getOptionDefaults() returns the default values for all options');
$this->assertSame($defaults, $definition->getOptionDefaults(), '->getOptionDefaults() returns the default values for all options');
}
public function testGetSynopsis()