/** * Test getCustomConfig(). */ public function testGetCustomConfig() { $vhost = new Vhost(); $domain = new Domain(); $subdomain = new Subdomain($domain); $domain->setCustomconfig('a'); $subdomain->setCustomconfig('b'); $vhost->setDomain($domain); $this->assertEquals('a', $vhost->getCustomConfig()); $vhost->setSubdomain($subdomain); $this->assertEquals('b', $vhost->getCustomConfig()); }