* * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ declare(strict_types=1); namespace Respect\Validation\Rules; use Respect\Validation\Test\TestCase; /** * @group rule * * @covers \Respect\Validation\Rules\AlwaysValid * * @author Gabriel Caruso * @author Henrique Moody * @author Paulo Eduardo * @author William Espindola */ final class AlwaysValidTest extends TestCase { public function providerForValidInput(): array { return [ [0], [1], ['string'], [true], [false], [null], [''], [[]], [['array_full']], ]; } /** * @test * * @dataProvider providerForValidInput */ public function itAlwaysBeValid($input): void { $rule = new AlwaysValid(); self::assertTrue($rule->validate($input)); } }