From 93957bc3e48c3e844f65fae3ecc1bac7c34faa42 Mon Sep 17 00:00:00 2001 From: euromark Date: Sun, 22 Jul 2012 03:55:13 +0200 Subject: [PATCH] fix for windows. the check seems to be the wrong way. at least compared to the one in the rss class itself --- lib/Cake/Test/Case/View/Helper/RssHelperTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/View/Helper/RssHelperTest.php b/lib/Cake/Test/Case/View/Helper/RssHelperTest.php index bfffdf4fcf1..0c833606a67 100644 --- a/lib/Cake/Test/Case/View/Helper/RssHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/RssHelperTest.php @@ -642,8 +642,7 @@ public function testItemEnclosureLength() { ) ); $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 @@ public function testItemEnclosureLength() { '/category', '/item' ); + if (!$type) { + unset($expected['enclosure']['type']); + } $this->assertTags($result, $expected); $File->delete();