You are here

public function CollectionTest::testRejectValidConstraintWithinRequired in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/CollectionTest.php \Symfony\Component\Validator\Tests\Constraints\CollectionTest::testRejectValidConstraintWithinRequired()

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

File

vendor/symfony/validator/Tests/Constraints/CollectionTest.php, line 68

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testRejectValidConstraintWithinRequired() {
  new Collection(array(
    'foo' => new Required(new Valid()),
  ));
}