Skip to content

Commit a96ffac

Browse files
TavoNiievezNaktibalda
authored andcommitted
Support for Codeception 5
1 parent 3c6f485 commit a96ffac

File tree

5 files changed

+10
-20
lines changed

5 files changed

+10
-20
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
php: [7.4, 8.0]
11+
php: [8.0, 8.1]
1212

1313
steps:
1414
- name: Checkout code

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
"name": "Michael Bodnarchuk"
1111
}
1212
],
13-
"minimum-stability": "RC",
13+
"minimum-stability": "dev",
1414
"require": {
15-
"php": "^7.4 | ^8.0",
15+
"php": "^8.0",
1616
"ext-dom": "*",
17-
"codeception/codeception": "^4.1",
18-
"codeception/lib-innerbrowser": "^2.0"
17+
"codeception/codeception": "^5.0.0-alpha1",
18+
"codeception/lib-innerbrowser": "^2.0 | *@dev"
1919
},
2020
"require-dev": {
21-
"codeception/util-universalframework": "^1.0"
21+
"codeception/util-universalframework": "^1.0 | *@dev",
22+
"codeception/stub": "^4.0"
2223
},
2324
"autoload": {
2425
"classmap": [

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A SOAP module for Codeception.
99

1010
## Requirements
1111

12-
* `PHP 7.4` or higher.
12+
* `PHP 8.0` or higher.
1313

1414
## Installation
1515

src/Codeception/Module/SOAP.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function onReconfigure(): void
111111
$this->xmlStructure = null;
112112
}
113113

114-
public function _depends()
114+
public function _depends(): array
115115
{
116116
return [InnerBrowser::class => $this->dependencyMessage];
117117
}
@@ -173,8 +173,6 @@ private function getXmlStructure(): XmlStructure
173173
* </AuthHeader>
174174
* </soapenv:Header>
175175
* ```
176-
*
177-
* @param string $header
178176
*/
179177
public function haveSoapHeader(string $header, array $params = []): void
180178
{
@@ -257,10 +255,7 @@ public function sendSoapRequest(string $action, $body = ''): void
257255
* $dom = new \DOMDocument();
258256
* $dom->load($file);
259257
* $I->seeSoapRequestIncludes($dom);
260-
*
261258
* ```
262-
*
263-
* @param string $xml
264259
*/
265260
public function seeSoapResponseEquals(string $xml): void
266261
{
@@ -300,7 +295,6 @@ public function seeSoapResponseIncludes($xml): void
300295
*
301296
* Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes).
302297
*
303-
* @param string $xml
304298
*/
305299
public function dontSeeSoapResponseEquals(string $xml): void
306300
{
@@ -339,7 +333,6 @@ public function dontSeeSoapResponseIncludes($xml): void
339333
* This method does not use schema for validation.
340334
* This method does not require path from root to match the structure.
341335
*
342-
* @param string $xml
343336
*/
344337
public function seeSoapResponseContainsStructure(string $xml): void
345338
{
@@ -350,7 +343,6 @@ public function seeSoapResponseContainsStructure(string $xml): void
350343

351344
/**
352345
* Opposite to `seeSoapResponseContainsStructure`
353-
* @param string $xml
354346
*/
355347
public function dontSeeSoapResponseContainsStructure(string $xml): void
356348
{
@@ -409,7 +401,6 @@ public function seeSoapResponseCodeIs(string $code): void
409401
* Element is matched by either CSS or XPath
410402
*
411403
* @version 1.1
412-
* @param string $cssOrXPath
413404
*/
414405
public function grabTextContentFrom(string $cssOrXPath): string
415406
{
@@ -422,8 +413,6 @@ public function grabTextContentFrom(string $cssOrXPath): string
422413
* Element is matched by either CSS or XPath
423414
*
424415
* @version 1.1
425-
* @param string $cssOrXPath
426-
* @param string $attribute
427416
*/
428417
public function grabAttributeFrom(string $cssOrXPath, string $attribute): string
429418
{

tests/unit/Codeception/Module/SoapTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Codeception\Module\SOAP;
99
use Codeception\Module\UniversalFramework;
1010
use Codeception\PHPUnit\TestCase;
11-
use Codeception\Util\Stub;
11+
use Codeception\Stub;
1212
use Codeception\Util\Soap as SoapUtil;
1313

1414
/**

0 commit comments

Comments
 (0)