cvs: pear /PHP_Compat/tests/function var_export.phpt
| From: | Aidan Lister | Date: | Mon, 28 Feb 2005 08:51:12 +0000 |
| Subject: | cvs: pear /PHP_Compat/tests/function var_export.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-29919@lists.php.net to get a copy of this message | ||
aidan Mon Feb 28 03:51:12 2005 EDT
Modified files:
/pear/PHP_Compat/tests/function var_export.phpt
Log:
Test for further problems
http://cvs.php.net/diff.php/pear/PHP_Compat/tests/function/var_export.phpt?r1=1.4&r2=1.5&ty=u
Index: pear/PHP_Compat/tests/function/var_export.phpt
diff -u pear/PHP_Compat/tests/function/var_export.phpt:1.4
pear/PHP_Compat/tests/function/var_export.phpt:1.5
--- pear/PHP_Compat/tests/function/var_export.phpt:1.4 Thu Aug 19 06:09:53 2004
+++ pear/PHP_Compat/tests/function/var_export.phpt Mon Feb 28 03:51:12 2005
@@ -14,6 +14,17 @@
// With return
echo var_export($a, true);
+
+// More complex
+$a = array(
+ null => null,
+ 'O\'neil',
+ 'He said "bar" ...' => 'He said "bar" ...',
+ 'Yes \ No' =>'Yes \ No O\'neil',
+ 'foo' => null,
+ );
+var_export($a);
+
?>
--EXPECT--
array (
@@ -35,4 +46,11 @@
1 => 'b',
2 => 'c',
),
+)
+array (
+ '' => NULL,
+ 0 => 'O\'neil',
+ 'He said "bar" ...' => 'He said "bar" ...',
+ 'Yes \\ No' => 'Yes \\ No O\'neil',
+ 'foo' => NULL,
)
\ No newline at end of file