* SPDX-License-Identifier: MIT */ declare(strict_types=1); namespace Respect\Validation\Rules; use Respect\Validation\Test\RuleTestCase; use const INF; /** * @group rule * * @covers \Respect\Validation\Rules\Even * * @author Gabriel Caruso * @author Henrique Moody * @author Jean Pimentel * @author Paul Karikari */ final class EvenTest extends RuleTestCase { /** * {@inheritDoc} */ public static function providerForValidInput(): array { return [ [new Even(), 2], [new Even(), -2], [new Even(), 0], [new Even(), 32], ]; } /** * {@inheritDoc} */ public static function providerForInvalidInput(): array { return [ [new Even(), ''], [new Even(), INF], [new Even(), 2.2], [new Even(), -5], [new Even(), -1], [new Even(), 1], [new Even(), 13], ]; } }