9153f0e569
Had to refactor the validation tests at the same time and fixed various small bugs while doing so.
17 lines
389 B
PHP
17 lines
389 B
PHP
<?php
|
|
|
|
namespace Symfony\Tests\Component\Validator\Fixtures;
|
|
|
|
use Symfony\Component\Validator\Constraint;
|
|
use Symfony\Component\Validator\ConstraintValidator;
|
|
|
|
class FailingConstraintValidator extends ConstraintValidator
|
|
{
|
|
public function isValid($value, Constraint $constraint)
|
|
{
|
|
$this->context->addViolation($constraint->message, array());
|
|
|
|
return false;
|
|
}
|
|
}
|