public function testAddSitemap() { $sitemapindex = new Sitemap\Sitemapindex(); try { $sitemapindex->addSitemap(new Sitemap\Urlset('http://acme.com')); } catch (\RuntimeException $e) { $this->fail('An exception must not be thrown'); } }
/** * @return Sitemap\Sitemapindex */ protected function getRoot() { if (null === $this->root) { $this->root = new Sitemap\Sitemapindex(); foreach ($this->urlsets as $urlset) { $this->root->addSitemap($urlset); } } return $this->root; }