/** * @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)); }
/** * @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)); }