/** * */ public function testDumpSiteMap() { $siteMapEntity = new SiteMapEntity(); $siteMapEntity->setLoc('http://test.com/sitemap1.xml'); $siteMapEntity->setLastmod(new \DateTime('2015-09-10')); $this->siteMapIndexEntity->addSiteMap($siteMapEntity); $this->assertRegExp('/\\<sitemap\\>\\<loc\\>http\\:\\/\\/test\\.com\\/sitemap1\\.xml\\<\\/loc\\>\\<lastmod\\>2015\\-09\\-10\\<\\/lastmod\\>\\<\\/sitemap\\>/', $this->siteMapIndexEntity->getXml()); }