Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for windows. the check seems to be the wrong way. at least compar…

…ed to the one in the rss class itself
  • Loading branch information...
commit 93957bc3e48c3e844f65fae3ecc1bac7c34faa42 1 parent 7150779
Mark S. dereuromark authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Cake/Test/Case/View/Helper/RssHelperTest.php
6 lib/Cake/Test/Case/View/Helper/RssHelperTest.php
View
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.