public function __construct() { parent::__construct(['yes', 'on', 1, '1', true, 'true']); }
/** * @param array $haystack * @param $input * @param $expectedResult * @param bool $strict * @dataProvider dpValidation */ public function testValidation(array $haystack, $strict, $input, $expectedResult) { $rule = new IsIn($haystack, $strict); $this->assertEquals($expectedResult, $rule->isValid($input)); }