/** * @dataProvider fileProvider * @covers Respect\Validation\Rules\Exists::validate */ public function testShouldValidateObjects($file) { $rule = new Exists(); $object = new SplFileInfo($file->url()); $this->assertTrue($rule->validate($object)); }