public function testCanClearStorage() { $this->config['desktop'] = array('device' => array('classname' => 'Zend_Http_TestAsset_DesktopDevice')); $this->config['user_agent'] = 'desktop'; $ua = new Zend_Http_UserAgent($this->config); // Prime storage by retrieving device $device = $ua->getDevice(); $storage = $ua->getStorage(); $this->assertType('Zend_Http_UserAgent_Storage', $storage); $this->assertFalse($storage->isEmpty()); $ua->clearStorage(); $this->assertTrue($storage->isEmpty()); }