You are here

public function AbstractComparisonValidatorTestCase::testThrowsConstraintExceptionIfNoValueOrProperty in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php \Symfony\Component\Validator\Tests\Constraints\AbstractComparisonValidatorTestCase::testThrowsConstraintExceptionIfNoValueOrProperty()

@expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException

File

vendor/symfony/validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php, line 74

Class

AbstractComparisonValidatorTestCase
@author Daniel Holmes <daniel@danielholmes.org>

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testThrowsConstraintExceptionIfNoValueOrProperty() {
  $comparison = $this
    ->createConstraint(array());
  $this->validator
    ->validate('some value', $comparison);
}