You are here

public function CompositeTest::testSingleConstraintsAccepted in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CompositeTest.php, line 109

Class

CompositeTest
@since 2.6 @author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testSingleConstraintsAccepted() {
  $nestedConstraint = new NotNull();
  $constraint = new ConcreteComposite($nestedConstraint);
  $this
    ->assertEquals(array(
    $nestedConstraint,
  ), $constraint->constraints);
}