]> granicus.if.org Git - php/commitdiff
Make failed case tell you what was different.
authorPreston L. Bannister <pbannister@php.net>
Thu, 16 May 2002 21:56:44 +0000 (21:56 +0000)
committerPreston L. Bannister <pbannister@php.net>
Thu, 16 May 2002 21:56:44 +0000 (21:56 +0000)
tests/lang/029.phpt

index 4fcaa3811a7f850374ef22168b3a7480b06ddf6e..65b15c00a0764b98d6210cd2a1775e5411524f71 100644 (file)
@@ -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