diff --git a/src/Codeception/Module/REST.php b/src/Codeception/Module/REST.php index 4062d08..53f29ff 100644 --- a/src/Codeception/Module/REST.php +++ b/src/Codeception/Module/REST.php @@ -23,7 +23,6 @@ use Codeception\Util\JsonType; use Codeception\Util\Soap as XmlUtils; use Codeception\Util\XmlStructure; -use Exception; use JsonException; use JsonSchema\Constraints\Constraint as JsonConstraint; use JsonSchema\Validator as JsonSchemaValidator; @@ -368,7 +367,7 @@ public function amBearerAuthenticated(string $accessToken): void * $I->amNTLMAuthenticated('jon_snow', 'targaryen'); * ``` * - * @throws ModuleException + * @throws \Codeception\Exception\ModuleException * @part json * @part xml */ @@ -405,7 +404,7 @@ public function amNTLMAuthenticated(string $username, string $password): void * amAWSAuthenticated(); * ``` - * @throws ConfigurationException + * @throws \Codeception\Exception\ConfigurationException */ public function amAWSAuthenticated(array $additionalAWSConfig = []): void { @@ -460,7 +459,7 @@ public function amAWSAuthenticated(array $additionalAWSConfig = []): void * ]]); * ``` * - * @param array|string|JsonSerializable $params + * @param array|string|\JsonSerializable $params * @param array $files A list of filenames or "mocks" of $_FILES (each entry being an array with the following * keys: name, type, error, size, tmp_name (pointing to the real file path). Each key works * as the "name" attribute of a file input field. @@ -524,7 +523,7 @@ public function sendGet(string $url, array $params = []) * $response = $I->sendPut('/message/1', ['subject' => 'Read this!']); * ``` * - * @param array|string|JsonSerializable $params + * @param array|string|\JsonSerializable $params * @part json * @part xml */ @@ -541,7 +540,7 @@ public function sendPut(string $url, $params = [], array $files = []) * $response = $I->sendPatch('/message/1', ['subject' => 'Read this!']); * ``` * - * @param array|string|JsonSerializable $params + * @param array|string|\JsonSerializable $params * @part json * @part xml */ @@ -569,7 +568,7 @@ public function sendDelete(string $url, array $params = [], array $files = []) /** * Sends a HTTP request. * - * @param array|string|JsonSerializable $params + * @param array|string|\JsonSerializable $params * @part json * @part xml */ @@ -1044,7 +1043,7 @@ public function grabResponse(): string * ``` * * @return array Array of matching items - * @throws Exception + * @throws \Exception * @part json */ public function grabDataFromResponseByJsonPath(string $jsonPath): array