[OptionsResolver] Relaxed tests to check that allowed values can also be passed as scalars

This commit is contained in:
Bernhard Schussek 2012-05-23 16:48:20 +02:00
parent 97de0041a1
commit b4e8bcfc5a
1 changed files with 5 additions and 5 deletions

View File

@ -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(