/** * Ensures that the query API throws an exception when a category is not first provided * * @return void */ public function testQueryExceptionCategoryMissing() { $this->setExpectedException('ZendService\\Amazon\\Exception\\RuntimeException', 'You must set a category before setting the search parameters'); $this->_query->Keywords('php'); }