1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 12:18:14 +01:00

Bumps the PHPUnit version to support PHP 7.4 and fixes test

This commit is contained in:
freshleafmedia 2020-11-16 14:12:31 +00:00
parent d435098e6e
commit f9a78a2ea4
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
"guzzlehttp/psr7": "~1.1" "guzzlehttp/psr7": "~1.1"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.8 || ^5.7", "phpunit/phpunit": "^4.8 || ^5.7 || ^7.5.15",
"mockery/mockery": "~0.9.2" "mockery/mockery": "~0.9.2"
}, },
"suggest": { "suggest": {

View File

@ -19,7 +19,7 @@ class FileTest extends TestCase
public function testBasePath() public function testBasePath()
{ {
$file = new File; $file = new File;
$this->assertNull(null, $file->basePath()); $this->assertNull(null, $file->basePath() ?: '');
$file->dirname = 'foo'; $file->dirname = 'foo';
$file->basename = 'bar'; $file->basename = 'bar';