You are here

public function DateTimeValidatorTest::testExpectsStringCompatibleType in Plug 7

@expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/DateTimeValidatorTest.php, line 54

Class

DateTimeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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