mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Merge pull request #3186 from bcrowe/hotfix-yoda-test
Fix yoda condition in File test
This commit is contained in:
commit
997154565f
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';
|
$path = CAKE . 'Test' . DS . 'test_app' . DS . 'webroot' . DS . 'img' . DS . 'cake.power.gif';
|
||||||
$file = new File($path);
|
$file = new File($path);
|
||||||
$expected = 'image/gif';
|
$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;
|
$expected = false;
|
||||||
}
|
}
|
||||||
$this->assertEquals($expected, $file->mime());
|
$this->assertEquals($expected, $file->mime());
|
||||||
|
|
Loading…
Add table
Reference in a new issue