public static function delete($path) { if (!self::exists($path)) { throw new FileNotFoundException('Cannot find file: ' . $path); } return unlink($path); }
protected function tearDown() { if (Files::exists($this->controllerPath)) { Files::delete($this->controllerPath); } parent::tearDown(); }