Skip to content

Commit 1979f92

Browse files
committed
issue #7 - add location option proper unit test
1 parent 2b1f979 commit 1979f92

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/SoapClientTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ public function testSetLocation()
5252

5353
$this->assertSAme('http://api.bing.net:80/soap.asm', $soapClient->getSoapClient()->location);
5454
}
55+
/**
56+
*
57+
*/
58+
public function testLocationOotion()
59+
{
60+
$soapClient = new SoapClient(array(
61+
SoapClient::WSDL_URL => __DIR__ . '/resources/bingsearch.wsdl',
62+
SoapClient::WSDL_CLASSMAP => self::classMap(),
63+
SoapClient::WSDL_LOCATION => 'http://api.bing.net:80/soap.asm',
64+
));
65+
66+
$this->assertSAme('http://api.bing.net:80/soap.asm', $soapClient->getSoapClient()->location);
67+
}
5568
/**
5669
*
5770
*/

0 commit comments

Comments
 (0)