public function testRemoveEndpointWithObject() { $endpoint1 = $this->client->createEndpoint('s1'); $endpoint2 = $this->client->createEndpoint('s2'); $endpoint3 = $this->client->createEndpoint('s3'); $this->client->setEndpoints(array($endpoint1, $endpoint2, $endpoint3)); $this->client->removeEndpoint($endpoint1); $this->assertEquals(array('s2' => $endpoint2, 's3' => $endpoint3), $this->client->getEndpoints()); }