public function CardSchemeValidatorTest::testNullIsValid

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/CardSchemeValidatorTest.php, line 35

Class

CardSchemeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testNullIsValid() {
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $this->validator
    ->validate(null, new CardScheme(array(
    'schemes' => array(),
  )));
}