protected function AbstractConstraintValidatorTest::expectNoValidate in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ AbstractConstraintValidatorTest.php, line 288  
Class
- AbstractConstraintValidatorTest
 - @since 2.5.3
 
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
protected function expectNoValidate() {
  switch ($this
    ->getApiVersion()) {
    case Validation::API_VERSION_2_4:
      $this->context
        ->expects($this
        ->never())
        ->method('validate');
      $this->context
        ->expects($this
        ->never())
        ->method('validateValue');
      break;
    case Validation::API_VERSION_2_5:
    case Validation::API_VERSION_2_5_BC:
      $validator = $this->context
        ->getValidator()
        ->inContext($this->context);
      $validator
        ->expects($this
        ->never())
        ->method('atPath');
      $validator
        ->expects($this
        ->never())
        ->method('validate');
      break;
  }
}