/home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/unit/Rules
Edit: /home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/unit/Rules/AlwaysInvalidTest.php (971B)
*
* For the full copyright and license information, please view the "LICENSE.md"
* file that was distributed with this source code.
*/
namespace Respect\Validation\Rules;
use Respect\Validation\TestCase;
/**
* @group rule
* @covers Respect\Validation\Rules\AlwaysInvalid
*/
class AlwaysInvalidTest extends TestCase
{
public function providerForValidAlwaysInvalid()
{
return [
[0],
[1],
['string'],
[true],
[false],
[null],
[''],
[[]],
[['array_full']],
];
}
/**
* @dataProvider providerForValidAlwaysInvalid
*/
public function testShouldValidateInputWhenItIsAValidAlwaysInvalid($input)
{
$rule = new AlwaysInvalid();
$this->assertFalse($rule->validate($input));
}
}