diff --git a/composer.json b/composer.json index 795a50f..c545bc0 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "require-dev": { "guzzlehttp/psr7": "^1.0", "php-http/client-integration-tests": "dev-master", - "phpunit/phpunit": "^4.8.27", + "phpunit/phpunit": "^7.0", "zendframework/zend-diactoros": "^1.0" }, "autoload": { diff --git a/tests/PromiseCoreTest.php b/tests/PromiseCoreTest.php index 081a9f9..9df678b 100644 --- a/tests/PromiseCoreTest.php +++ b/tests/PromiseCoreTest.php @@ -21,7 +21,7 @@ class PromiseCoreTest extends BaseUnitTestCase */ public function testHandleIsNotAResource() { - $this->setExpectedException( + $this->expectException( \InvalidArgumentException::class, 'Parameter $handle expected to be a cURL resource, NULL given' ); @@ -38,7 +38,7 @@ public function testHandleIsNotAResource() */ public function testHandleIsNotACurlResource() { - $this->setExpectedException( + $this->expectException( \InvalidArgumentException::class, 'Parameter $handle expected to be a cURL resource, stream resource given' );