public function fileExists($fn, $safe) { if ($safe) { // pretend we don't know anything about any files return false; } else { return file_exists($fn); } }
public function testFileExistsSafe() { $app = $this->getApp(); $handler = new UtilsHandler($app); $result = $handler->fileExists(__FILE__, true); $this->assertFalse($result); }