public function testFailAPIKey() { $brokenRequest = new Services_FullContact_Name('nope, no good'); $name = $brokenRequest->normalize('John'); $this->assertEquals('403', $name->status); $this->assertRegExp('/invalid/i', $name->message); }
public function testFailAPIKey() { $this->setExpectedException('Services_FullContact_Exception_NoCredit'); $brokenRequest = new Services_FullContact_Name('nope, no good'); $name = $brokenRequest->normalizer('John'); $name = $brokenRequest->normalizer('John'); }