Example #1
0
 /**
  * @dataProvider providerInvalid
  * @expectedException Respect\Validation\Exceptions\BetweenException
  */
 public function testValuesOutBoundsShouldRaiseException($min, $max, $inclusive, $input)
 {
     $o = new Between($min, $max, $inclusive);
     $this->assertFalse($o->__invoke($input));
     $this->assertFalse($o->assert($input));
 }
Example #2
0
 /**
  * @dataProvider providerInvalid
  * @expectedException Respect\Validation\Exceptions\BetweenException
  */
 public function test_values_out_bounds_should_raise_exception($min, $max, $inclusive, $input)
 {
     $o = new Between($min, $max, $inclusive);
     $this->assertFalse($o->validate($input));
     $this->assertFalse($o->assert($input));
 }