Skip to content

Commit ff23425

Browse files
committed
soapClientTest
1 parent 89a98e4 commit ff23425

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/Debug/Collector/SoapClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ public function __doRequest($request, $location, $action, $version, $oneWay = 0)
118118
$this->setLastResponse($xmlResponse);
119119
if ($this->isViaCall() === false) {
120120
// __doRequest called directly
121+
\bdk\Debug::varDump('__doReqeust -> logReqRes');
121122
$this->logReqRes($action, $exception, true);
123+
} else {
124+
\bdk\Debug::varDump('__doRequest -> NOT logReqRes!!');
122125
}
123126
if ($exception) {
124127
throw $exception;
@@ -254,7 +257,6 @@ private function isViaCall()
254257
'type' => null,
255258
), $frame);
256259
$func = $frame['class'] . $frame['type'] . $frame['function'];
257-
\bdk\Debug::varDump('func', $func);
258260
if ($func === 'SoapClient->__call') {
259261
return true;
260262
}

tests/Debug/Collector/SoapClientTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class SoapClientTest extends DebugTestFramework
1818
protected $wsdl = 'http://127.0.0.1:8080/soap/wsdl';
1919
protected static $client;
2020

21-
public function testConstruct()
21+
public function t_estConstruct()
2222
{
2323
new \bdk\Debug\Collector\SoapClient(
2424
$this->wsdl,
@@ -83,7 +83,7 @@ public function testConstruct()
8383
), $this->getLogEntries());
8484
}
8585

86-
public function testConstructException()
86+
public function t_estConstructException()
8787
{
8888
if (PHP_VERSION_ID < 70100) {
8989
$this->markTestSkipped('PHP <= 7.0 raises E_ERROR instead of throwing exception');
@@ -264,7 +264,7 @@ public function testSoapCall()
264264
$this->assertLogEntries($logEntriesExpect, $logEntries);
265265
}
266266

267-
public function testSoapCallException()
267+
public function t_estSoapCallException()
268268
{
269269
$exception = null;
270270
$line = __LINE__ + 3;
@@ -293,7 +293,7 @@ public function testSoapCallException()
293293
$this->assertInstanceOf('SoapFault', $exception);
294294
}
295295

296-
public function testSoapCallResponseFault()
296+
public function t_estSoapCallResponseFault()
297297
{
298298
$exception = null;
299299
$line = __LINE__ + 3;

0 commit comments

Comments
 (0)