Skip to content

Commit

Permalink
fix for windows. the check seems to be the wrong way. at least compar…
Browse files Browse the repository at this point in the history
…ed to the one in the rss class itself
  • Loading branch information
euromark committed Jul 22, 2012
1 parent 7150779 commit 93957bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Cake/Test/Case/View/Helper/RssHelperTest.php
Expand Up @@ -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 {
Expand Down Expand Up @@ -679,6 +678,9 @@ public function testItemEnclosureLength() {
'/category',
'/item'
);
if (!$type) {
unset($expected['enclosure']['type']);
}
$this->assertTags($result, $expected);

$File->delete();
Expand Down

0 comments on commit 93957bc

Please sign in to comment.