示例#1
0
 /**
  * @dataProvider providerForInvalidLowercase
  * @expectedException Respect\Validation\Exceptions\LowercaseException
  */
 public function testInvalidLowercaseShouldThrowException($input)
 {
     $lowercase = new Lowercase();
     $this->assertFalse($lowercase->__invoke($input));
     $this->assertFalse($lowercase->assert($input));
 }
示例#2
0
 /**
  * @dataProvider providerForInvalidLowercase
  * @expectedException Respect\Validation\Exceptions\LowercaseException
  */
 public function test_invalid_lowercase_should_throw_exception($input)
 {
     $lowercase = new Lowercase();
     $this->assertFalse($lowercase->validate($input));
     $this->assertFalse($lowercase->assert($input));
 }