diff --git a/cake/tests/cases/libs/view/helpers/rss.test.php b/cake/tests/cases/libs/view/helpers/rss.test.php index 047b603c8..e25764324 100644 --- a/cake/tests/cases/libs/view/helpers/rss.test.php +++ b/cake/tests/cases/libs/view/helpers/rss.test.php @@ -52,7 +52,7 @@ class RssTest extends UnitTestCase { $this->assertPattern('/^$/', $res); $res = $this->Rss->document(array('contrived' => 'parameter')); - $this->assertPattern('/^<\/rss>$/', $res); + $this->assertPattern('/^<\/rss>$/', $res); $res = $this->Rss->document(null, 'content'); $this->assertPattern('/^content<\/rss>$/', $res); @@ -85,7 +85,7 @@ class RssTest extends UnitTestCase { $res = $this->Rss->channel($attrib, $elements, $content); $this->assertPattern('/^/', $res); $this->assertPattern('/title<\/title>/', $res); - $this->assertPattern('/<image[^<>]+href="http:\/\/localhost">myImage<\/image>/', $res); + $this->assertPattern('/<image[^<>]+href="http:\/\/localhost"><myImage \/><\/image>/', $res); $this->assertPattern('/<link>'.str_replace('/', '\/', RssHelper::url('/', true)).'<\/link>/', $res); $this->assertPattern('/<description \/>/', $res); $this->assertPattern('/content<\/channel>$/', $res);