Esempio n. 1
0
 /**
  * @dataProvider providerForInvalidMax
  * @expectedException Respect\Validation\Exceptions\MaxException
  */
 public function test_invalid_max_value_should_throw_MaxException($maxValue, $inclusive, $input)
 {
     $max = new Max($maxValue, $inclusive);
     $this->assertFalse($max->validate($input));
     $this->assertFalse($max->assert($input));
 }
Esempio n. 2
0
 /**
  * @dataProvider providerForInvalidMax
  * @expectedException Respect\Validation\Exceptions\MaxException
  */
 public function testInvalidMaxValueShouldThrowMaxException($maxValue, $inclusive, $input)
 {
     $max = new Max($maxValue, $inclusive);
     $this->assertFalse($max->validate($input));
     $this->assertFalse($max->assert($input));
 }