/home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/unit/Rules
Edit: /home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/unit/Rules/FloatTypeTest.php (1007B)
*
* For the full copyright and license information, please view the "LICENSE.md"
* file that was distributed with this source code.
*/
namespace Respect\Validation\Rules;
/**
* @group rule
* @covers Respect\Validation\Rules\FloatType
*/
class FloatTypeTest extends RuleTestCase
{
public function providerForValidInput()
{
$rule = new FloatType();
return [
[$rule, 165.23],
[$rule, 1.3e3],
[$rule, 7E-10],
[$rule, 0.0],
[$rule, -2.44],
[$rule, 10 / 33.33],
[$rule, PHP_INT_MAX + 1],
];
}
public function providerForInvalidInput()
{
$rule = new FloatType();
return [
[$rule, '1'],
[$rule, '1.0'],
[$rule, '7E-10'],
[$rule, 111111],
[$rule, PHP_INT_MAX * -1],
];
}
}