Skip to content

Commit 5a364cf

Browse files
committed
Upgrade to PHPUnit 7/8
1 parent f9c9a2c commit 5a364cf

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ composer.phar
33
composer.lock
44
/vendor/
55
/.php_cs.cache
6+
/.phpunit.result.cache
67
/node_modules/
78
/docs/.vuepress/dist/
89
/docs/README.md

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"require-dev": {
3232
"friendsofphp/php-cs-fixer": "^2.14",
3333
"php-http/guzzle6-adapter": "^2.0",
34-
"phpunit/phpunit": "^6.0"
34+
"phpunit/phpunit": "^7.0|^8.0"
3535
},
3636
"provide": {
3737
"php-http/async-client-implementation": "1.0",

phpunit.xml.dist

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="false"
1211
bootstrap="./vendor/autoload.php"
1312
>
1413
<testsuites>

tests/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ClientTest extends TestCase
1717
public function it_can_send_a_request()
1818
{
1919
$request = new Request('GET', new Uri('http://example.com'));
20-
/** @var \PHPUnit_Framework_MockObject_MockObject|\Swis\Http\Fixture\ResponseBuilderInterface $responseBuilder */
20+
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\Http\Fixture\ResponseBuilderInterface $responseBuilder */
2121
$responseBuilder = $this->getMockBuilder(ResponseBuilderInterface::class)->getMock();
2222
$responseBuilder->expects($this->once())
2323
->method('build')

0 commit comments

Comments
 (0)