public function ChoiceValidatorTest::testValidChoiceCallbackStaticMethod in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ ChoiceValidatorTest.php, line 105
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testValidChoiceCallbackStaticMethod() {
$constraint = new Choice(array(
'callback' => array(
__CLASS__,
'staticCallback',
),
));
$this->validator
->validate('bar', $constraint);
$this
->assertNoViolation();
}