Exemplo n.º 1
0
 /**
  * @dataProvider provideTestFilter
  */
 public function testFilter($options, $raw, $filtered, $valid)
 {
     $int = new Boolean($options);
     $this->assertEquals($filtered, $int->filter($raw));
     $this->assertEquals($valid, $int->validate($raw));
 }
Exemplo n.º 2
0
 /**
  * @dataProvider validationProvider
  */
 public function testValidation($value, $result)
 {
     $validator = new Boolean(null);
     $this->assertEquals($result, $validator->validate($value));
 }