return 'constraints';
}}/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class CompositeTest extends TestCase
{ public function testConstraintHasDefaultGroup() { $constraint =
new ConcreteComposite([ new NotNull(),
new NotBlank(),
]);
$this->
assertEquals(['Default'
],
$constraint->groups
);
$this->
assertEquals(['Default'
],
$constraint->constraints
[0
]->groups
);
$this->
assertEquals(['Default'
],
$constraint->constraints
[1
]->groups
);
} public function testNestedCompositeConstraintHasDefaultGroup() {