|
@@ -33,13 +33,6 @@ class MaxValidatorTest extends \PHPUnit_Framework_TestCase
|
|
$this->assertTrue($this->validator->isValid(null, new Max(array('limit' => 10))));
|
|
$this->assertTrue($this->validator->isValid(null, new Max(array('limit' => 10))));
|
|
}
|
|
}
|
|
|
|
|
|
- public function testExpectsNumericType()
|
|
|
|
- {
|
|
|
|
- $this->setExpectedException('Symfony\Component\Validator\Exception\UnexpectedTypeException');
|
|
|
|
-
|
|
|
|
- $this->validator->isValid(new \stdClass(), new Max(array('limit' => 10)));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* @dataProvider getValidValues
|
|
* @dataProvider getValidValues
|
|
*/
|
|
*/
|
|
@@ -73,6 +66,7 @@ class MaxValidatorTest extends \PHPUnit_Framework_TestCase
|
|
return array(
|
|
return array(
|
|
array(10.00001),
|
|
array(10.00001),
|
|
array('10.00001'),
|
|
array('10.00001'),
|
|
|
|
+ array(new \stdClass()),
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|