/** * @dataProvider hostDataProvider * * @param $publicSuffix * @param $registrableDomain * @param $subdomain * @param $hostPart */ public function testToArray($publicSuffix, $registrableDomain, $subdomain, $hostPart) { $parts = array('subdomain' => $subdomain, 'registrableDomain' => $registrableDomain, 'publicSuffix' => $publicSuffix, 'host' => $hostPart); $host = new Host($parts['subdomain'], $parts['registrableDomain'], $parts['publicSuffix'], $parts['host']); $this->assertEquals($parts, $host->toArray()); }