コード例 #1
0
ファイル: MaxTest.php プロジェクト: vituhugo/webservice
 /**
  * @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));
 }
コード例 #2
0
ファイル: MaxTest.php プロジェクト: gawonmi/Validation
 /**
  * @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));
 }