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