Skip to content

Commit 9b6e7a4

Browse files
committed
issue #3 - review unit test based on PHP version
1 parent e6ecfee commit 9b6e7a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/SoapClientTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,11 @@ public function testGetStreamContextAsNill()
333333
SoapClient::WSDL_CLASSMAP => self::classMap(),
334334
));
335335

336-
$this->assertNull($soapClient->getStreamContext());
336+
if (PHP_VERSION_ID < 70013) {
337+
$this->assertNull($soapClient->getStreamContext());
338+
} else {
339+
$this->assertTrue(is_resource($soapClient->getStreamContext()));
340+
}
337341
}
338342
/**
339343
*

0 commit comments

Comments
 (0)