Ejemplo n.º 1
0
 /**
  * @dataProvider providerForInvalidDirectory
  * @expectedException Respect\Validation\Exceptions\DirectoryException
  */
 public function test_invalid_directory_should_throw_exception($input)
 {
     $rule = new Directory();
     $this->assertFalse($rule->validate($input));
     $this->assertFalse($rule->assert($input));
     $this->assertFalse($rule->check($input));
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider providerForInvalidDirectory
  * @expectedException Respect\Validation\Exceptions\DirectoryException
  */
 public function testInvalidDirectoryShouldThrowException($input)
 {
     $rule = new Directory();
     $this->assertFalse($rule->__invoke($input));
     $this->assertFalse($rule->assert($input));
     $this->assertFalse($rule->check($input));
 }