From b93f373f1627560dc001b1e52c2941e4ce9920e4 Mon Sep 17 00:00:00 2001 From: Bryan Crowe Date: Mon, 31 Mar 2014 17:40:35 -0400 Subject: [PATCH] Fix yoda condition in File test --- lib/Cake/Test/Case/Utility/FileTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Utility/FileTest.php b/lib/Cake/Test/Case/Utility/FileTest.php index 25eb1aec3..563c045b4 100644 --- a/lib/Cake/Test/Case/Utility/FileTest.php +++ b/lib/Cake/Test/Case/Utility/FileTest.php @@ -532,7 +532,7 @@ class FileTest extends CakeTestCase { $path = CAKE . 'Test' . DS . 'test_app' . DS . 'webroot' . DS . 'img' . DS . 'cake.power.gif'; $file = new File($path); $expected = 'image/gif'; - if (function_exists('mime_content_type') && false === mime_content_type($file->pwd())) { + if (function_exists('mime_content_type') && mime_content_type($file->pwd()) === false) { $expected = false; } $this->assertEquals($expected, $file->mime());