public function AbstractComparisonValidatorTestCase::testThrowsConstraintExceptionIfNoValueOrProperty in Plug 7
@expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ AbstractComparisonValidatorTestCase.php, line 74
Class
- AbstractComparisonValidatorTestCase
- @author Daniel Holmes <daniel@danielholmes.org>
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testThrowsConstraintExceptionIfNoValueOrProperty() {
$comparison = $this
->createConstraint(array());
$this->validator
->validate('some value', $comparison);
}