summaryrefslogtreecommitdiff
path: root/php/test
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-03-01 14:33:27 +0100
committerJose <jose@zeroc.com>2016-03-01 14:33:27 +0100
commite283494c906ffac2be14f38422934921ea6ae307 (patch)
treec4b9274845482abd89f84555675d8486a41a71e3 /php/test
parentRework previous fix for 3.6 compatibility (diff)
downloadice-e283494c906ffac2be14f38422934921ea6ae307.tar.bz2
ice-e283494c906ffac2be14f38422934921ea6ae307.tar.xz
ice-e283494c906ffac2be14f38422934921ea6ae307.zip
Ice::identityToString/Ice::stringToIdentity php/ruby/python implementations
Diffstat (limited to 'php/test')
-rw-r--r--php/test/Ice/proxy/Client.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/php/test/Ice/proxy/Client.php b/php/test/Ice/proxy/Client.php
index 20783d006d4..ac186cd15d4 100644
--- a/php/test/Ice/proxy/Client.php
+++ b/php/test/Ice/proxy/Client.php
@@ -38,6 +38,9 @@ function allTests($communicator)
$random = $NS ? constant("Ice\\EndpointSelectionType::Random") : constant("Ice_EndpointSelectionType::Random");
$ordered = $NS ? constant("Ice\\EndpointSelectionType::Ordered") : constant("Ice_EndpointSelectionType::Ordered");
$encodingVersion = $NS ? "Ice\\EncodingVersion" : "Ice_EncodingVersion";
+
+ $identityToString = $NS ? "Ice\\identityToString" : "Ice_identityToString";
+ $stringToIdentity = $NS ? "Ice\\stringToIdentity" : "Ice_stringToIdentity";
echo "testing stringToProxy... ";
flush();
@@ -435,6 +438,7 @@ function allTests($communicator)
echo "testing proxy methods... ";
flush();
test($communicator->identityToString($base->ice_identity($communicator->stringToIdentity("other"))->ice_getIdentity()) == "other");
+ test($identityToString($base->ice_identity($stringToIdentity("other"))->ice_getIdentity()) == "other");
test($base->ice_facet("facet")->ice_getFacet() == "facet");
test($base->ice_adapterId("id")->ice_getAdapterId() == "id");
test($base->ice_twoway()->ice_isTwoway());