mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix yoda condition in File test
This commit is contained in:
parent
d3855f869a
commit
b93f373f16
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue