Exemplo n.º 1
0
 /**
  * @dataProvider providerValid
  */
 public function testValuesBetweenBoundsShouldPass($min, $max, $inclusive, $input)
 {
     $o = new Between($min, $max, $inclusive);
     $this->assertTrue($o->__invoke($input));
     $this->assertTrue($o->assert($input));
     $this->assertTrue($o->check($input));
 }
Exemplo n.º 2
0
 /**
  * @dataProvider providerValid
  */
 public function test_values_between_bounds_should_pass($min, $max, $inclusive, $input)
 {
     $o = new Between($min, $max, $inclusive);
     $this->assertTrue($o->validate($input));
     $this->assertTrue($o->assert($input));
     $this->assertTrue($o->check($input));
 }