public function testThrowsConstraintExceptionIfNoValueOrProperty() {
$this
->setExpectedException('Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException');
$comparison = $this
->createConstraint(array());
$this->validator
->validate('some value', $comparison);
}