/** * @covers ::getApiKey * @covers ::setApiKey */ public function testApiKeySet() { $key = 'test'; $client = new Client(); $tmp = $client->setApiKey($key); $this->assertSame($key, $client->getApiKey()); $this->assertInstanceOf(get_class($client), $tmp); }