You are here

public function DateTimeValidatorTest::testDateTimeClassIsValid in Zircon Profile 8.0

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

File

vendor/symfony/validator/Tests/Constraints/DateTimeValidatorTest.php, line 44

Class

DateTimeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testDateTimeClassIsValid() {
  $this->validator
    ->validate(new \DateTime(), new DateTime());
  $this
    ->assertNoViolation();
}