public function remove($filename) { $file = $this->getPath() . $filename; if (file_exists($file)) { @unlink($file); } return true; }
/** * Test * * @return void */ public function testRemove() { $this->assertTrue($this->object->remove('undefined-file')); }