Skip to content

Commit

Permalink
Upgrade to PHPUnit 9
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Jan 3, 2022
1 parent 5e82723 commit af0de4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
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
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 af0de4b

Please sign in to comment.