diff --git a/composer.json b/composer.json index 28691c35e..7e8ad5662 100644 --- a/composer.json +++ b/composer.json @@ -21,9 +21,9 @@ "ext-mbstring": "*" }, "require-dev": { - "phpunit/phpunit": "~4.0", - "php-coveralls/php-coveralls": "1.*", - "squizlabs/php_codesniffer": "~2.0" + "phpunit/phpunit": "^5.7", + "php-coveralls/php-coveralls": "^2.1", + "squizlabs/php_codesniffer": "^3.3" }, "autoload": { "psr-4": { "Stripe\\" : "lib/" } diff --git a/tests/Stripe/HttpClient/CurlClientTest.php b/tests/Stripe/HttpClient/CurlClientTest.php index 89cf203f2..25c24cede 100644 --- a/tests/Stripe/HttpClient/CurlClientTest.php +++ b/tests/Stripe/HttpClient/CurlClientTest.php @@ -60,7 +60,7 @@ private function setInitialNetworkRetryDelay($initialNetworkRetryDelay) private function createFakeRandomGenerator($returnValue = 1.0) { - $fakeRandomGenerator = $this->getMock('Stripe\Util\RandomGenetator', ['randFloat']); + $fakeRandomGenerator = $this->createMock('Stripe\Util\RandomGenerator', ['randFloat']); $fakeRandomGenerator->method('randFloat')->willReturn($returnValue); return $fakeRandomGenerator; } diff --git a/tests/TestCase.php b/tests/TestCase.php index 93be3d128..69714db01 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -42,7 +42,7 @@ protected function setUp() Stripe::setAccountId(null); // Set up the HTTP client mocker - $this->clientMock = $this->getMock('\Stripe\HttpClient\ClientInterface'); + $this->clientMock = $this->createMock('\Stripe\HttpClient\ClientInterface'); // By default, use the real HTTP client ApiRequestor::setHttpClient(HttpClient\CurlClient::instance());