diff options
author | Jose <jose@zeroc.com> | 2017-02-13 20:40:50 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-02-13 20:44:40 +0100 |
commit | bd4c5f908f33362fb705ba466f381a23ca90d1bb (patch) | |
tree | f64301a7c59d1d6524485ead41998033cfc722d9 /php/test | |
parent | Update Ice Builder for Gradle version to 1.4.0 (diff) | |
download | ice-bd4c5f908f33362fb705ba466f381a23ca90d1bb.tar.bz2 ice-bd4c5f908f33362fb705ba466f381a23ca90d1bb.tar.xz ice-bd4c5f908f33362fb705ba466f381a23ca90d1bb.zip |
Fixed (ICE-7276) - Comparing struct with Ice::Unset results in error in Ruby
Diffstat (limited to 'php/test')
-rw-r--r-- | php/test/Ice/optional/Client.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/php/test/Ice/optional/Client.php b/php/test/Ice/optional/Client.php index 79076dd10ec..0d2e18be716 100644 --- a/php/test/Ice/optional/Client.php +++ b/php/test/Ice/optional/Client.php @@ -94,6 +94,8 @@ function allTests($communicator) test($mo1->bos == Ice_Unset); + $sscls = $NS ? "Test\\SmallStruct" : "Test_SmallStruct"; + $ss = new $sscls(); $fscls = $NS ? "Test\\FixedStruct" : "Test_FixedStruct"; $fs = new $fscls(78); $vscls = $NS ? "Test\\VarStruct" : "Test_VarStruct"; @@ -143,6 +145,15 @@ function allTests($communicator) test($mo1->ioopd[5] == $ooprx); test($mo1->bos == array(false, true, false)); + + + // + // Test generated struct and classes compare with Ice_Unset + // + test($ss != Ice_Unset); + test($fs != Ice_Unset); + test($vs != Ice_Unset); + test($mo1 != Ice_Unset); echo "ok\n"; @@ -533,7 +544,6 @@ function allTests($communicator) $p3 = $initial->opMyEnum($enum, $p2); test($p2 == $enum && $p3 == $enum); - $sscls = $NS ? "Test\\SmallStruct" : "Test_SmallStruct"; $p3 = $initial->opSmallStruct(Ice_Unset, $p2); test($p2 == Ice_Unset && $p3 == Ice_Unset); $p1 = new $sscls(56); |