/** * Ensures that _validateGroupPoolGetPhotos() throws an exception when the page option is invalid * * @return void */ public function testValidateGroupPoolGetPhotosExceptionPageInvalid() { try { $this->_flickrProxy->proxyValidateGroupPoolGetPhotos(array('per_page' => 10, 'page' => 1.23)); $this->fail('Expected Zend_Service_Exception not thrown'); } catch (Zend_Service_Exception $e) { $this->assertContains('"page" option', $e->getMessage()); } }
/** * Ensures that _compareOptions() throws an exception when an option is invalid * * @return void */ public function testCompareOptionsExceptionOptionInvalid() { try { $this->_flickrProxy->proxyCompareOptions(array('unexpected' => null), array()); $this->fail('Expected Zend_Service_Exception not thrown'); } catch (Zend_Service_Exception $e) { $this->assertContains('parameters are invalid', $e->getMessage()); } }