/** * @covers Respect\Validation\Rules\Exists::validate */ public function testShouldValidateObjects() { $GLOBALS['file_exists'] = true; $rule = new Exists(); $object = new \SplFileInfo('/path/of/an/existent/file'); $this->assertTrue($rule->validate($object)); }