Skip to content

Commit 5995c3d

Browse files
Merge pull request #45 from php-http/phpunit
Support PHPUnit 6.x
2 parents 0681df1 + fbcd93c commit 5995c3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"require-dev": {
2727
"guzzlehttp/psr7": "^1.0",
2828
"php-http/client-integration-tests": "dev-master",
29-
"phpunit/phpunit": "^4.8.27",
29+
"phpunit/phpunit": "^7.0",
3030
"zendframework/zend-diactoros": "^1.0"
3131
},
3232
"autoload": {

tests/PromiseCoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PromiseCoreTest extends BaseUnitTestCase
2121
*/
2222
public function testHandleIsNotAResource()
2323
{
24-
$this->setExpectedException(
24+
$this->expectException(
2525
\InvalidArgumentException::class,
2626
'Parameter $handle expected to be a cURL resource, NULL given'
2727
);
@@ -38,7 +38,7 @@ public function testHandleIsNotAResource()
3838
*/
3939
public function testHandleIsNotACurlResource()
4040
{
41-
$this->setExpectedException(
41+
$this->expectException(
4242
\InvalidArgumentException::class,
4343
'Parameter $handle expected to be a cURL resource, stream resource given'
4444
);

0 commit comments

Comments
 (0)