/** * @depends testExist * @return void */ public function testIsExecutable() { $filePath = __DIR__ . '/example.txt'; $fileObject = new File($filePath); $result = $fileObject->isExecutable(); $fileObject = new \SplFileInfo($filePath); $this->assertEquals($result, $fileObject->isExecutable()); }