public function testSetDefaultEndpointWithObject() { $endpoint1 = $this->client->createEndpoint('s1'); $endpoint2 = $this->client->createEndpoint('s2'); $this->client->setEndpoints(array($endpoint1, $endpoint2)); $this->assertEquals($endpoint1, $this->client->getEndpoint()); $this->client->setDefaultEndpoint($endpoint2); $this->assertEquals($endpoint2, $this->client->getEndpoint()); }