/** * Ensures that itemSearch() throws an exception when provided an invalid city * * @return void */ public function testItemSearchExceptionCityInvalid() { $this->setExpectedException('ZendService\\Amazon\\Exception\\RuntimeException', 'The value you specified for SearchIndex is invalid.'); $this->_amazon->itemSearch(array('SearchIndex' => 'Restaurants', 'Keywords' => 'seafood', 'City' => 'Des Moines')); }