You are here

public function DateValidatorTest::testDateTimeClassIsValid in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/DateValidatorTest.php, line 44

Class

DateValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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