diff --git a/lib/Cake/Test/Case/View/Helper/RssHelperTest.php b/lib/Cake/Test/Case/View/Helper/RssHelperTest.php index bfffdf4fc..0c833606a 100644 --- a/lib/Cake/Test/Case/View/Helper/RssHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/RssHelperTest.php @@ -642,8 +642,7 @@ class RssHelperTest extends CakeTestCase { ) ); $result = $this->Rss->item(null, $item); - if (!function_exists('finfo_open') && - (function_exists('mime_content_type') && false === mime_content_type($tmpFile)) + if (!function_exists('finfo_open') || !function_exists('mime_content_type') || mime_content_type($tmpFile) === false ) { $type = false; } else { @@ -679,6 +678,9 @@ class RssHelperTest extends CakeTestCase { '/category', '/item' ); + if (!$type) { + unset($expected['enclosure']['type']); + } $this->assertTags($result, $expected); $File->delete();