/home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/unit/Rules
Edit: /home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/unit/Rules/CountableTest.php (905B)
*
* 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\Countable
*/
class CountableTest extends RuleTestCase
{
public function providerForValidInput()
{
$rule = new Countable();
return [
[$rule, []],
[$rule, new \ArrayObject()],
[$rule, new \ArrayIterator()],
];
}
public function providerForInvalidInput()
{
$rule = new Countable();
return [
[$rule, '1'],
[$rule, 1.0],
[$rule, new \stdClass()],
[$rule, PHP_INT_MAX],
[$rule, true],
];
}
}