/** * @covers WindowsAzure\Common\Internal\Http\HttpClient::__clone */ public function test__clone() { // Setup $channel = new HttpClient(); $channel->setHeader('myheader', 'headervalue'); $channel->setUrl(new Url('http://www.example.com')); // Test $actual = clone $channel; $channel->setUrl(new Url('http://www.microsoft.com')); $channel->setHeader('headerx', 'valuex'); // Assert $this->assertNotEquals($channel->getHeaders(), $actual->getHeaders()); $this->assertNotEquals($channel->getUrl()->getUrl(), $actual->getUrl()->getUrl()); }