diff options
author | Preston L. Bannister <pbannister@php.net> | 2002-05-16 21:56:44 +0000 |
---|---|---|
committer | Preston L. Bannister <pbannister@php.net> | 2002-05-16 21:56:44 +0000 |
commit | 285b73fa1f671bac289d31ffa9664500d2c0d1c5 (patch) | |
tree | bfdf986ce55b2ac3b7904f261e3fa8430246b98f /tests | |
parent | c2c16263e8b530435ba07031c2e35d2c51dd2054 (diff) | |
download | php-git-285b73fa1f671bac289d31ffa9664500d2c0d1c5.tar.gz |
Make failed case tell you what was different.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/029.phpt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/lang/029.phpt b/tests/lang/029.phpt index 4fcaa3811a..65b15c00a0 100644 --- a/tests/lang/029.phpt +++ b/tests/lang/029.phpt @@ -21,6 +21,14 @@ ob_start(); var_dump($o); $y=ob_get_contents(); ob_end_clean(); -echo ($x==$y) ? 'success':'failure'; ?> +if ($x == $y) { + print "success"; +} else { + print "failure +x=$x +y=$y +"; +} +?> --EXPECT-- success |