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