summaryrefslogtreecommitdiff
path: root/php/test/Ice/defaultValue/Client.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/test/Ice/defaultValue/Client.php')
-rw-r--r--php/test/Ice/defaultValue/Client.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/php/test/Ice/defaultValue/Client.php b/php/test/Ice/defaultValue/Client.php
index caf06d93d70..2fcc596ce0f 100644
--- a/php/test/Ice/defaultValue/Client.php
+++ b/php/test/Ice/defaultValue/Client.php
@@ -25,7 +25,8 @@ function test($b)
if(!$b)
{
$bt = debug_backtrace();
- die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n");
+ echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n";
+ exit(1);
}
}
@@ -54,7 +55,7 @@ function allTests()
test($v->l == 4);
test($v->f == 5.1);
test($v->d == 6.2);
- test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007");
+ test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007");
test($v->c1 == $red);
test($v->c2 == $green);
test($v->c3 == $blue);
@@ -104,7 +105,7 @@ function allTests()
test($v->l == 4);
test($v->f == 5.1);
test($v->d == 6.2);
- test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007");
+ test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007");
test(strlen($v->noDefault) == 0);
test($v->zeroI == 0);
test($v->zeroL == 0);
@@ -124,7 +125,7 @@ function allTests()
test($v->l == 4);
test($v->f == 5.1);
test($v->d == 6.2);
- test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007");
+ test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007");
test(strlen($v->noDefault) == 0);
test($v->c1 == $red);
test($v->c2 == $green);
@@ -150,7 +151,7 @@ function allTests()
test($v->l == 4);
test($v->f == 5.1);
test($v->d == 6.2);
- test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007");
+ test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007");
test(strlen($v->noDefault) == 0);
test($v->zeroI == 0);
test($v->zeroL == 0);
@@ -170,7 +171,7 @@ function allTests()
test($v->l == 4);
test($v->f == 5.1);
test($v->d == 6.2);
- test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007");
+ test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007");
test(strlen($v->noDefault) == 0);
test($v->c1 == $red);
test($v->c2 == $green);