summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPreston L. Bannister <pbannister@php.net>2002-05-16 21:56:44 +0000
committerPreston L. Bannister <pbannister@php.net>2002-05-16 21:56:44 +0000
commit285b73fa1f671bac289d31ffa9664500d2c0d1c5 (patch)
treebfdf986ce55b2ac3b7904f261e3fa8430246b98f /tests
parentc2c16263e8b530435ba07031c2e35d2c51dd2054 (diff)
downloadphp-git-285b73fa1f671bac289d31ffa9664500d2c0d1c5.tar.gz
Make failed case tell you what was different.
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/029.phpt10
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