fix for windows. the check seems to be the wrong way. at least compared to the one in the rss class itself

This commit is contained in:
euromark 2012-07-22 03:55:13 +02:00
parent 71507796c7
commit 93957bc3e4

View file

@ -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();