/** * Tests Abstraction::unlinkErrorFile */ public function testUnlinkFile() { $path = realpath(__DIR__ . '/../../../_files/bin'); $mysqldump = new Mysqldump($path); $tmpFile = tempnam(sys_get_temp_dir(), 'foo'); $this->assertTrue(file_exists($tmpFile)); $mysqldump->unlinkErrorFile($tmpFile); $this->assertFalse(file_exists($tmpFile)); }