Skip to content

Commit 99ef0d7

Browse files
authored
Merge pull request #26 from chrisnharvey/php-8
PHP 8 support
2 parents 41e3ea0 + af0de4b commit 99ef0d7

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
13+
php-versions: ['7.3', '7.4', '8.0']
1414

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

@@ -26,7 +26,7 @@ jobs:
2626
ini-values: post_max_size=256M, short_open_tag=On
2727
coverage: xdebug
2828
tools: composer
29-
29+
3030
- name: Composer install
3131
run: composer install
3232

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor/
22
composer.lock
3+
.phpunit.result.cache

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
}
1919
},
2020
"require": {
21-
"php-opencloud/openstack": "^3.0",
21+
"php": ">=7.3",
22+
"php-opencloud/openstack": "^3.0 | ^3.2",
2223
"league/flysystem": "^1.0"
2324
},
2425
"require-dev": {
25-
"phpunit/phpunit": "^5.5",
26+
"phpunit/phpunit": "^9.0",
2627
"mockery/mockery": "^1.3.1",
2728
"mikey179/vfsstream": "^1.6.4"
2829
}

phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="true"
1211
verbose="true"
1312
>
1413
<testsuites>

tests/SwiftAdapterTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
use GuzzleHttp\Psr7\Stream;
44
use League\Flysystem\Config;
5-
use org\bovigo\vfs\vfsStream;
6-
use org\bovigo\vfs\content\LargeFileContent;
5+
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
76
use Nimbusoft\Flysystem\OpenStack\SwiftAdapter;
7+
use org\bovigo\vfs\content\LargeFileContent;
8+
use org\bovigo\vfs\vfsStream;
89
use PHPUnit\Framework\TestCase;
910

1011
class SwiftAdapterTest extends TestCase
1112
{
12-
protected function setUp()
13+
use MockeryPHPUnitIntegration;
14+
15+
protected function setUp(): void
1316
{
1417
$this->config = new Config([]);
1518
$this->container = Mockery::mock('OpenStack\ObjectStore\v1\Models\Container');
@@ -20,7 +23,7 @@ protected function setUp()
2023
$this->root = vfsStream::setUp('home');
2124
}
2225

23-
protected function tearDown()
26+
protected function tearDown(): void
2427
{
2528
Mockery::close();
2629
}

0 commit comments

Comments
 (0)