You are here

public function TimeValidatorTest::testDateTimeClassIsValid in Plug 7

File

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

Class

TimeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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