Skip to content
Permalink
Browse files

Fix yoda condition in File test

  • Loading branch information...
bcrowe committed Mar 31, 2014
1 parent d3855f8 commit b93f373f1627560dc001b1e52c2941e4ce9920e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/Utility/FileTest.php
@@ -532,7 +532,7 @@ public function testMime() {
$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());

0 comments on commit b93f373

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.