summaryrefslogtreecommitdiff
path: root/php/test
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2016-03-22 17:57:11 +0000
committerMark Spruiell <mes@zeroc.com>2016-03-22 17:57:11 +0000
commitb2fd1b55169020cf160da0f874f3647771ffbe59 (patch)
tree2c886cbc2b27f01f0ddab7cecbbe393e34b13d0c /php/test
parentIceUtil/stacktrace v140 fixes (diff)
downloadice-b2fd1b55169020cf160da0f874f3647771ffbe59.tar.bz2
ice-b2fd1b55169020cf160da0f874f3647771ffbe59.tar.xz
ice-b2fd1b55169020cf160da0f874f3647771ffbe59.zip
fix for PHP namespace bug in test/Ice/objects
Diffstat (limited to 'php/test')
-rw-r--r--php/test/Ice/objects/Client.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/php/test/Ice/objects/Client.php b/php/test/Ice/objects/Client.php
index d6e33ee42f7..3f288a53f2e 100644
--- a/php/test/Ice/objects/Client.php
+++ b/php/test/Ice/objects/Client.php
@@ -23,9 +23,11 @@ require_once 'Test.php';
if($NS)
{
$code = <<<EOT
+ class Test_A1 extends Test\A1 {}
abstract class Test_B extends Test\B {}
abstract class Test_C extends Test\C {}
abstract class Test_D extends Test\D {}
+ class Test_D1 extends Test\D1 {}
abstract class Test_E extends Test\E {}
abstract class Test_F extends Test\F {}
interface Test_I extends Test\I {}
@@ -364,12 +366,17 @@ function allTests($communicator)
$initial->throwEDerived();
test(false);
}
- catch(Test_EDerived $e)
+ catch(Exception $ex)
{
- test($e->a1->name == "a1");
- test($e->a2->name == "a2");
- test($e->a3->name == "a3");
- test($e->a4->name == "a4");
+ $ed = $NS ? "Test\\EDerived" : "Test_EDerived";
+ if(!($ex instanceof $ed))
+ {
+ throw $ex;
+ }
+ test($ex->a1->name == "a1");
+ test($ex->a2->name == "a2");
+ test($ex->a3->name == "a3");
+ test($ex->a4->name == "a4");
}
echo "ok\n";