Skip to content

Commit e982c56

Browse files
authored
PHPUnit 6 compatability (#31)
* PHPUnit 6 compatability * Require latest (unreleased) version of the integration tests
1 parent 0972ad0 commit e982c56

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"require-dev": {
2727
"guzzlehttp/psr7": "^1.0",
28-
"php-http/client-integration-tests": "^0.5.1",
28+
"php-http/client-integration-tests": "^0.6",
2929
"phpunit/phpunit": "^4.8.27",
3030
"zendframework/zend-diactoros": "^1.0"
3131
},

tests/BaseUnitTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
use Http\Client\Curl\PromiseCore;
55
use Http\Discovery\MessageFactoryDiscovery;
6+
use PHPUnit\Framework\TestCase;
67
use Psr\Http\Message\RequestInterface;
78
use Psr\Http\Message\ResponseInterface;
89

910
/**
1011
* Base class for unit tests
1112
*/
12-
abstract class BaseUnitTestCase extends \PHPUnit_Framework_TestCase
13+
abstract class BaseUnitTestCase extends TestCase
1314
{
1415
/**
1516
* Test cURL handle

tests/ClientTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33

44
use GuzzleHttp\Psr7\Stream;
55
use Http\Client\Curl\Client;
6+
use PHPUnit\Framework\TestCase;
67
use Zend\Diactoros\Request;
78

89
/**
910
* Tests for Http\Client\Curl\Client
1011
*
1112
* @covers Http\Client\Curl\Client
1213
*/
13-
class ClientTest extends \PHPUnit_Framework_TestCase
14+
class ClientTest extends TestCase
1415
{
1516
/**
1617
* "Expect" header should be empty

0 commit comments

Comments
 (0)