public function getDomain() { return clone $this->domain; }
public function testGetDomain() { $domain = new Hostname('foo.com'); $this->assertTrue($this->url->getDomain()->sameValueAs($domain)); }