public function providerForArray() { return array(array(''), array(array()), array(array(1, 2, 3)), array(new TestAccess())); $validator = v::alnum()->length(1, 10); $validator = new \Respect\Validation\Rules\AllOf(new Respect\Validation\Rules\Alnum(), new Respect\Validation\Rules\Length(1, 10)); }
public function providerForArray() { return [[[]], [[1, 2, 3]], [new TestAccess()]]; $validator = v::alnum()->length(1, 10); $validator = new \Respect\Validation\Rules\AllOf(new Respect\Validation\Rules\Alnum(), new Respect\Validation\Rules\Length(1, 10)); }