public function CompositeTest::testSingleConstraintsAccepted in Zircon Profile 8
Same name and namespace in other branches
- 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\ConstraintsCode
public function testSingleConstraintsAccepted() {
$nestedConstraint = new NotNull();
$constraint = new ConcreteComposite($nestedConstraint);
$this
->assertEquals(array(
$nestedConstraint,
), $constraint->constraints);
}