You are here

public function CollectionTest::testRejectInvalidFieldsOption in Plug 7

@expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php, line 28

Class

CollectionTest
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testRejectInvalidFieldsOption() {
  new Collection(array(
    'fields' => 'foo',
  ));
}