/** * @covers Robo47_Service_Bitly::setApiKey * @covers Robo47_Service_Bitly::getApiKey */ public function testSetApiKeyGetApiKey() { $service = new Robo47_Service_Bitly('login', 'apiKey'); $this->assertEquals('apiKey', $service->getApiKey(), 'Wrong apiKey'); $return = $service->setApiKey('foo'); $this->assertSame($return, $service, 'No Fluent Interface'); $this->assertEquals('foo', $service->getApiKey(), 'Wrong apiKey'); }