public function cleanup() { $this->_filename = null; $this->_mime = null; $this->_width = null; $this->_height = null; $this->_exif = array(); $this->_orient = null; $this->_quality = self::QUALITY; $this->_destroyImage(); return $this; }
public function testCleanup() { $original = Helper::getOrig('butterfly.jpg'); $img = new Image($original); isClass($this->_class, $img->loadFile($original)); $img->cleanup(); isCount(1, array_filter($img->getInfo())); }