[OptionsResolver] Relaxed tests to check that allowed values can also be passed as scalars
This commit is contained in:
parent
97de0041a1
commit
b4e8bcfc5a
@ -238,13 +238,13 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
|
||||
'two' => '2',
|
||||
));
|
||||
|
||||
$this->resolver->addAllowedValues(array(
|
||||
'one' => array('1'),
|
||||
'two' => array('2'),
|
||||
$this->resolver->setAllowedValues(array(
|
||||
'one' => '1',
|
||||
'two' => '2',
|
||||
));
|
||||
$this->resolver->addAllowedValues(array(
|
||||
'one' => array('one'),
|
||||
'two' => array('two'),
|
||||
'one' => 'one',
|
||||
'two' => 'two',
|
||||
));
|
||||
|
||||
$options = array(
|
||||
|
Reference in New Issue
Block a user