Phalcon\Test\UnitTestCase::cleanFile PHP Method

cleanFile() protected method

Removes a file from the system
protected cleanFile ( string $path, string $fileName )
$path string
$fileName string
    protected function cleanFile($path, $fileName)
    {
        $file = substr($path, -1, 1) != "/" ? $path . '/' : $path;
        $file .= $fileName;
        $actual = file_exists($file);
        if ($actual) {
            unlink($file);
        }
    }