mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
71507796c7
commit
93957bc3e4
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue