/** * @dataProvider providerForNotMultiple * @expectedException Respect\Validation\Exceptions\MultipleException */ public function testNotMultipleShouldThrowMultipleException($multipleOf, $input) { $multiple = new Multiple($multipleOf); $this->assertFalse($multiple->validate($input)); $this->assertFalse($multiple->assert($input)); }
/** * @dataProvider providerForNotMultiple * @expectedException Respect\Validation\Exceptions\MultipleException */ public function test_not_multiple_should_throw_MultipleException($multipleOf, $input) { $multiple = new Multiple($multipleOf); $this->assertFalse($multiple->validate($input)); $this->assertFalse($multiple->assert($input)); }