You are here

public function LanguageValidatorTest::testNullIsValid in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/LanguageValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\LanguageValidatorTest::testNullIsValid()

File

vendor/symfony/validator/Tests/Constraints/LanguageValidatorTest.php, line 31

Class

LanguageValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testNullIsValid() {
  $this->validator
    ->validate(null, new Language());
  $this
    ->assertNoViolation();
}