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