public function testCleanTmpDir() { $fileName = self::$_tmpDir . '/file.tmp'; touch($fileName); try { $this->_environment->cleanTmpDir(); $this->assertFileNotExists($fileName); } catch (Exception $e) { unlink($fileName); throw $e; } }