public function testClient() { $location = $this->faker->word; $authToken = $this->faker->word; $httpClient = new HttpClient(); $client = new Client($location, $authToken); $this->assertSame($location, $client->getLocation()); $this->assertSame($authToken, $client->getAuthToken()); $client = new Client('', ''); $client->setLocation($location)->setAuthToken($authToken)->setHttpClient($httpClient); $this->assertSame($location, $client->getLocation()); $this->assertSame($authToken, $client->getAuthToken()); $this->assertSame($httpClient, $client->getHttpClient()); }