Skip to content

Commit

Permalink
Merge pull request #26 from chrisnharvey/php-8
Browse files Browse the repository at this point in the history
PHP 8 support
  • Loading branch information
mzur authored Jan 3, 2022
2 parents 41e3ea0 + af0de4b commit 99ef0d7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
php-versions: ['7.3', '7.4', '8.0']

name: PHP ${{ matrix.php-versions }} test

Expand All @@ -26,7 +26,7 @@ jobs:
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug
tools: composer

- name: Composer install
run: composer install

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor/
composer.lock
.phpunit.result.cache
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
}
},
"require": {
"php-opencloud/openstack": "^3.0",
"php": ">=7.3",
"php-opencloud/openstack": "^3.0 | ^3.2",
"league/flysystem": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^5.5",
"phpunit/phpunit": "^9.0",
"mockery/mockery": "^1.3.1",
"mikey179/vfsstream": "^1.6.4"
}
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="true"
verbose="true"
>
<testsuites>
Expand Down
11 changes: 7 additions & 4 deletions tests/SwiftAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

use GuzzleHttp\Psr7\Stream;
use League\Flysystem\Config;
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\content\LargeFileContent;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use Nimbusoft\Flysystem\OpenStack\SwiftAdapter;
use org\bovigo\vfs\content\LargeFileContent;
use org\bovigo\vfs\vfsStream;
use PHPUnit\Framework\TestCase;

class SwiftAdapterTest extends TestCase
{
protected function setUp()
use MockeryPHPUnitIntegration;

protected function setUp(): void
{
$this->config = new Config([]);
$this->container = Mockery::mock('OpenStack\ObjectStore\v1\Models\Container');
Expand All @@ -20,7 +23,7 @@ protected function setUp()
$this->root = vfsStream::setUp('home');
}

protected function tearDown()
protected function tearDown(): void
{
Mockery::close();
}
Expand Down

0 comments on commit 99ef0d7

Please sign in to comment.