public function setUp() { $this->akismet = new Zend_Service_Akismet('somebogusapikey', 'http://framework.zend.com/wiki/'); $adapter = new Zend_Http_Client_Adapter_Test(); $client = new Zend_Http_Client(null, array('adapter' => $adapter)); $this->adapter = $adapter; Zend_Service_Akismet::setHttpClient($client); $this->comment = array('user_ip' => '71.161.221.76', 'user_agent' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1)', 'comment_type' => 'comment', 'comment_content' => 'spam check'); }