cvs: php4 /tests/lang 029.phpt
| From: | Preston L. Bannister | Date: | Thu, 16 May 2002 21:56:44 +0000 |
| Subject: | cvs: php4 /tests/lang 029.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11963@lists.php.net to get a copy of this message | ||
pbannister Thu May 16 17:56:44 2002 EDT
Modified files:
/php4/tests/lang 029.phpt
Log:
Make failed case tell you what was different.
Index: php4/tests/lang/029.phpt
diff -u php4/tests/lang/029.phpt:1.2 php4/tests/lang/029.phpt:1.3
--- php4/tests/lang/029.phpt:1.2 Fri Mar 29 12:12:11 2002
+++ php4/tests/lang/029.phpt Thu May 16 17:56:44 2002
@@ -21,6 +21,14 @@
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