You are here

public function DateTimeValidatorTest::testDateTimeClassIsValid in Plug 7

File

lib/Symfony/validator/Symfony/Component/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();
}