[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:
parent
31bfc9508b
commit
06a42e12e2
@ -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()
|
||||
|
Reference in New Issue
Block a user