Skip to content

Commit 31786fb

Browse files
committed
Merge branch 'release/1.0.6'
2 parents dca8046 + bb902ae commit 31786fb

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 1.0.6
4+
- Pull request #4: Rename $optioName to $optionName
5+
36
## 1.0.5
47
- Update readme
58

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"name": "Mikaël DELSOL",
1111
"email": "[email protected]",
1212
"role": "Owner"
13+
},
14+
{
15+
"name": "Luke Rodgers",
16+
"email": "[email protected]",
17+
"role": "Contributor"
1318
}
1419
],
1520
"support" : {

src/AbstractSoapClientBase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ public function initSoapClient(array $options)
6767
{
6868
$wsdlOptions = array();
6969
$defaultWsdlOptions = self::getDefaultWsdlOptions();
70-
foreach ($defaultWsdlOptions as $optioName => $optionValue) {
71-
if (array_key_exists($optioName, $options) && !empty($options[$optioName])) {
72-
$wsdlOptions[str_replace(self::OPTION_PREFIX, '', $optioName)] = $options[$optioName];
70+
foreach ($defaultWsdlOptions as $optionName => $optionValue) {
71+
if (array_key_exists($optionName, $options) && !empty($options[$optionName])) {
72+
$wsdlOptions[str_replace(self::OPTION_PREFIX, '', $optionName)] = $options[$optionName];
7373
} elseif (!empty($optionValue)) {
74-
$wsdlOptions[str_replace(self::OPTION_PREFIX, '', $optioName)] = $optionValue;
74+
$wsdlOptions[str_replace(self::OPTION_PREFIX, '', $optionName)] = $optionValue;
7575
}
7676
}
7777
if (array_key_exists(str_replace(self::OPTION_PREFIX, '', self::WSDL_URL), $wsdlOptions)) {

tests/SoapClientTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace WsdlToPhp\PackageBase\Tests;
44

5-
65
use WsdlToPhp\PackageBase\Utils;
76
use WsdlToPhp\PackageBase\Tests\SoapClient;
87

@@ -326,14 +325,18 @@ public function testGetStreamContext()
326325
/**
327326
*
328327
*/
329-
public function testGetStreamContextAsNill()
328+
public function testGetStreamContextAsNull()
330329
{
331330
$soapClient = new SoapClient(array(
332331
SoapClient::WSDL_URL => __DIR__ . '/resources/bingsearch.wsdl',
333332
SoapClient::WSDL_CLASSMAP => self::classMap(),
334333
));
335334

336-
$this->assertNull($soapClient->getStreamContext());
335+
if (PHP_VERSION_ID < 70013) {
336+
$this->assertNull($soapClient->getStreamContext());
337+
} else {
338+
$this->assertTrue(is_resource($soapClient->getStreamContext()));
339+
}
337340
}
338341
/**
339342
*

0 commit comments

Comments
 (0)