Skip to content
This repository
Browse code

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 authored July 22, 2012
6  lib/Cake/Test/Case/View/Helper/RssHelperTest.php
@@ -642,8 +642,7 @@ public function testItemEnclosureLength() {
642 642
 			)
643 643
 		);
644 644
 		$result = $this->Rss->item(null, $item);
645  
-		if (!function_exists('finfo_open') &&
646  
-			(function_exists('mime_content_type') && false === mime_content_type($tmpFile))
  645
+		if (!function_exists('finfo_open') || !function_exists('mime_content_type') || mime_content_type($tmpFile) === false
647 646
 		) {
648 647
 			$type = false;
649 648
 		} else {
@@ -679,6 +678,9 @@ public function testItemEnclosureLength() {
679 678
 			'/category',
680 679
 			'/item'
681 680
 		);
  681
+		if (!$type) {
  682
+			unset($expected['enclosure']['type']);
  683
+		}
682 684
 		$this->assertTags($result, $expected);
683 685
 
684 686
 		$File->delete();

0 notes on commit 93957bc

Please sign in to comment.
Something went wrong with that request. Please try again.