public function test__toStringWhenHostPartIsNull() { $host = new Host('www', 'example.com', 'com'); $this->assertEquals('www.example.com', $host->__toString()); }
/** * @dataProvider hostDataProvider */ public function test__toString($publicSuffix, $registerableDomain, $subdomain, $hostPart) { $host = new Host($subdomain, $registerableDomain, $publicSuffix); $this->assertEquals($hostPart, $host->__toString()); }