Skip to content

Commit 6ab5f70

Browse files
committed
Fixed PHPUnit assert class name
1 parent d88cde0 commit 6ab5f70

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"require": {
1414
"php": ">=5.4",
1515
"behat/behat": "~3.0",
16-
"kriswallsmith/buzz": "~0.14"
16+
"kriswallsmith/buzz": "~0.14",
17+
"phpunit/phpunit": ">=5.7"
1718
},
1819
"autoload": {
1920
"psr-4": {

src/Context/JsonApiContext.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Buzz\Browser;
66
use Buzz\Message\Request;
77
use Exception;
8-
use PHPUnit_Framework_Assert as PHPUnit;
8+
use PHPUnit\Framework\Assert as PHPUnit;
99

1010
/**
1111
* Defines application features from the specific context.
@@ -187,7 +187,7 @@ public function iOauthUsingTheClientCredentialsGrantWithScope($scope)
187187

188188
$this->sendOauthRequest($payload);
189189
}
190-
190+
191191
/**
192192
* @Given I oauth using the client credentials grant with :id and :secret and scope :scope
193193
*
@@ -699,7 +699,7 @@ public function createClientCredentialsGrantPayload($scope = null)
699699

700700
return $payload;
701701
}
702-
702+
703703
/**
704704
* Build a payload for the client credentials grant with the given variables
705705
*
@@ -890,7 +890,7 @@ protected function arrayGet($array, $key)
890890
return $array;
891891
}
892892

893-
foreach(explode('.', $key) as $segment) {
893+
foreach (explode('.', $key) as $segment) {
894894
if (is_object($array) === true) {
895895
if (isset($array->{$segment}) === false) {
896896
return;

0 commit comments

Comments
 (0)