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