diff --git a/src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php b/src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php
index aa340637366b7..332f8c3e91406 100644
--- a/src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php
@@ -696,6 +696,28 @@ public function testBaseTag()
$this->assertEquals('https://domain.com/path/link', $crawler->filterXPath('//a')->link()->getUri(), ' tag can set a path');
}
+ public function testSitemapXml()
+ {
+ $crawler = new Crawler('
+
+
+ http://localhost/foo
+ weekly
+ 0.5
+ 2012-11-16
+
+
+ http://localhost/bar
+ weekly
+ 0.5
+ 2012-11-16
+
+
+ ');
+
+ $this->assertEquals(2, $crawler->filter('url')->count());
+ }
+
public function createTestCrawler($uri = null)
{
$dom = new \DOMDocument();