public function testInvalidAppId() { $this->_finding->setOption(Zend_Service_Ebay_Abstract::OPTION_APP_ID, 'foo'); $appId = $this->_finding->getOption(Zend_Service_Ebay_Abstract::OPTION_APP_ID); $this->assertEquals('foo', $appId); try { $response = $this->_finding->findItemsByKeywords('harry+potter'); $this->fail('No exception found'); } catch (Exception $e) { $this->assertTrue($e instanceof Zend_Service_Ebay_Finding_Exception); $this->assertContains('eBay error', $e->getMessage()); } }