You are here

public function CompositeTest::testSingleConstraintsAccepted in Zircon Profile 8

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

File

vendor/symfony/validator/Tests/Constraints/CompositeTest.php, line 110

Class

CompositeTest
@since 2.6

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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