Exemplo n.º 1
0
 /**
  * @dataProvider providerForIn
  */
 public function testSuccessInValidatorCases($input, $options = null)
 {
     $v = new In($options);
     $this->assertTrue($v->__invoke($input));
     $this->assertTrue($v->check($input));
     $this->assertTrue($v->assert($input));
 }
Exemplo n.º 2
0
 /**
  * @dataProvider providerForIn
  *
  */
 public function test_success_in_validator_cases($input, $options = null)
 {
     $v = new In($options);
     $this->assertTrue($v->validate($input));
     $this->assertTrue($v->check($input));
     $this->assertTrue($v->assert($input));
 }