exampleException = new Zend_Gdata_App_CaptchaRequiredException('testtoken', 'Captcha?ctoken=testtoken'); } public function testExceptionContainsValidInformation() { $this->assertEquals('testtoken', $this->exampleException->getCaptchaToken()); $this->assertEquals('https://www.google.com/accounts/Captcha?ctoken=testtoken', $this->exampleException->getCaptchaUrl()); } public function testExceptionIsThrowable() { $caught = false; try { throw $this->exampleException; } catch(Zend_Gdata_App_CaptchaRequiredException $e) { $caught = true; } $this->assertTrue($caught); } }