Esempio n. 1
0
 /**
  * @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));
 }
Esempio n. 2
0
 /**
  * @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));
 }