use Symfony\Component\Validator\Constraints\AbstractComparison;
use Symfony\Component\Validator\Constraints\Negative;
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
/**
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
*/
class LessThanValidatorWithNegativeConstraintTest extends LessThanValidatorTest
{
protected static function createConstraint(array $options = null): Constraint
{
return new Negative();
}
public static function provideValidComparisons(): array
{
return [
[-1, 0],
[-2, 0],
[-2.5, 0],
[null, 0],
];
}