Skip to content

Commit e1096d6

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 22496b1 + 30aa74b commit e1096d6

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

.github/workflows/dependabot-auto-merge.yml

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

1515
- name: Dependabot metadata
1616
id: metadata
17-
uses: dependabot/fetch-metadata@v1.1.1
17+
uses: dependabot/fetch-metadata@v1.2.1
1818
with:
1919
github-token: "${{ secrets.GITHUB_TOKEN }}"
2020

.github/workflows/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout master
13-
uses: actions/checkout@v2.4.0
13+
uses: actions/checkout@v3
1414

1515
- name: Deploy docs
1616
uses: mhausenblas/mkdocs-deploy-gh-pages@master

.github/workflows/php-cs-fixer.yml

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

99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v2.4.0
11+
uses: actions/checkout@v3
1212
with:
1313
ref: ${{ github.head_ref }}
1414

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: phpstan
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2.4.0
14+
- uses: actions/checkout@v3
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
# git clone + use PHP + composer install
15-
- uses: actions/checkout@v2.4.0
15+
- uses: actions/checkout@v3
1616
- uses: shivammathur/setup-php@v2
1717
with:
1818
php-version: 8.0
@@ -47,7 +47,7 @@ jobs:
4747
name: PHP ${{ matrix.php }} tests
4848

4949
steps:
50-
- uses: actions/checkout@v2.4.0
50+
- uses: actions/checkout@v3
5151
# required for "git tag" presence for changelog-linker git tags resolver; default is 1
5252
# https://github.com/actions/checkout#fetch-all-tags
5353
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

src/Client/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function xmlContent(): string
155155
*/
156156
public function arguments(): array
157157
{
158-
$doc = Document::fromXmlString($this->xmlContent());
158+
$doc = Document::fromXmlString($this->body());
159159
$method = $doc->locate(new SoapBodyLocator())?->firstElementChild;
160160

161161
return Arr::wrap(Arr::get(element_decode($method, traverse(new RemoveNamespaces())), 'node', []));

tests/Unit/SoapClientTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,19 @@ public function testSoapWithDifferentHeaders($header, $exspected): void
254254
Soap::assertActionCalled('GetWeatherInformation');
255255
}
256256

257+
public function testArgumentsCanBeCalledTwice(): void
258+
{
259+
Soap::fake();
260+
Event::fake();
261+
Soap::assertNothingSent();
262+
$response = Soap::baseWsdl(dirname(__DIR__, 1).'/Fixtures/Wsdl/weather.wsdl')
263+
->call('GetWeatherInformation');
264+
self::assertTrue($response->ok());
265+
Soap::assertSent(function (Request $request) {
266+
return $request->arguments() === $request->arguments();
267+
});
268+
}
269+
257270
public function soapHeaderProvider(): array
258271
{
259272
$header = [

0 commit comments

Comments
 (0)