public function testHttpAcceptIsImmutableOnceDeviceRetrieved() { $config = $this->config; $userAgent = new Zend_Http_UserAgent($config); $device = $userAgent->getDevice(); $this->setExpectedException('Zend_Http_UserAgent_Exception', 'immutable'); $userAgent->setHttpAccept('application/json'); }