public function isExists() { return file_exists($this->toString()); }
public function testIsExists() { $existentFileInfo = new FileInfo(__FILE__); $nonExistentFileInfo = new FileInfo(ltrim(__FILE__, '/')); $this->assertTrue($existentFileInfo->isExists()); $this->assertFalse($nonExistentFileInfo->isExists()); }