/** * @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)); }
/** * @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)); }