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
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testExpectsStringCompatibleType() {
$this->validator
->validate(new \stdClass(), new DateTime());
}