From: Preston L. Bannister Date: Thu, 16 May 2002 21:56:44 +0000 (+0000) Subject: Make failed case tell you what was different. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=285b73fa1f671bac289d31ffa9664500d2c0d1c5;p=php Make failed case tell you what was different. --- 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