/** * Test getDocumentRoot(). */ public function testGetDocumentRoot() { $domain = new Domain(); $domain->setPath('/tmp/domain.de')->setWebroot('htdocs'); $subdomain = new Subdomain($domain); $subdomain->setPath('htdocs/subdomain'); $vhost = new Vhost(); $vhost->setDomain($domain); $this->assertEquals('/tmp/domain.de/htdocs', $vhost->getDocumentRoot()); $vhost->setSubdomain($subdomain); $this->assertEquals('/tmp/domain.de/htdocs/subdomain', $vhost->getDocumentRoot()); }