You are here

public function CallbackValidatorTest::testAnnotationInvocationSingleValued in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CallbackValidatorTest.php, line 323

Class

CallbackValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testAnnotationInvocationSingleValued() {
  $constraint = new Callback(array(
    'value' => 'validateStatic',
  ));
  $this
    ->assertEquals(new Callback('validateStatic'), $constraint);
}