* SPDX-FileContributor: Gabriel Caruso * SPDX-FileContributor: Henrique Moody * SPDX-FileContributor: Jean Pimentel * SPDX-FileContributor: Paul Karikari */ declare(strict_types=1); namespace Respect\Validation\Validators; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\Group; use Respect\Validation\Test\RuleTestCase; use const INF; #[Group('validator')] #[CoversClass(Even::class)] final class EvenTest extends RuleTestCase { /** @return iterable */ public static function providerForValidInput(): iterable { return [ [new Even(), 2], [new Even(), -2], [new Even(), 0], [new Even(), 32], ]; } /** @return iterable */ public static function providerForInvalidInput(): iterable { return [ [new Even(), ''], [new Even(), INF], [new Even(), 2.2], [new Even(), -5], [new Even(), -1], [new Even(), 1], [new Even(), 13], ]; } }