public function AbstractValidatorTest::testFailOnScalarReferences in Plug 7
@expectedException \Symfony\Component\Validator\Exception\NoSuchMetadataException
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ AbstractValidatorTest.php, line 517
Class
- AbstractValidatorTest
- @since 2.5 @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator\Tests\ValidatorCode
public function testFailOnScalarReferences() {
$entity = new Entity();
$entity->reference = 'string';
$this->metadata
->addPropertyConstraint('reference', new Valid());
$this
->validate($entity);
}