Skip to content

Commit

Permalink
Merge pull request #18 from biigle/laravel-10
Browse files Browse the repository at this point in the history
Update requirements to support Laravel 10
  • Loading branch information
mzur authored Sep 27, 2023
2 parents 846ed84 + 9bb57ee commit 02bef6d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
php-versions: ['8.0', '8.1']
laravel-versions: ['^9.0']
php-versions: ['8.1', '8.2']
laravel-versions: ['^9.0', '^10.0']
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"type": "library",
"license": "MIT",
"require": {
"illuminate/console": "^9.0",
"illuminate/filesystem": "^9.0",
"illuminate/support": "^9.0",
"illuminate/console": "^9.0 || ^10.0",
"illuminate/filesystem": "^9.0 || ^10.0",
"illuminate/support": "^9.0 || ^10.0",
"symfony/finder": "^6.0",
"guzzlehttp/guzzle": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"mockery/mockery": "^1.2",
"laravel/laravel": "^9.0"
"laravel/laravel": "^9.0 || ^10.0"
},
"authors": [
{
Expand Down
7 changes: 4 additions & 3 deletions tests/FileCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,15 @@ public function testGetStreamCached()
$hash = hash('sha256', 'test://test-image.jpg');

$path = "{$this->cachePath}/{$hash}";
touch($path, time() - 1);
$oldTime = time() - 1;
touch($path, $oldTime);

$cache = new FileCacheStub(['path' => $this->cachePath]);
$cache->stream = 'abc123';
$this->assertNotEquals(time(), fileatime($path));
$this->assertEquals($oldTime, fileatime($path));
$this->assertEquals('abc123', $cache->getStream($file));
clearstatcache();
$this->assertEquals(time(), fileatime($path));
$this->assertNotEquals($oldTime, fileatime($path));
}

public function testGetStreamRemote()
Expand Down

0 comments on commit 02bef6d

Please sign in to comment.