summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-09-09 07:46:19 +0000
committerMarcus Boerger <helly@php.net>2004-09-09 07:46:19 +0000
commitb16ae3b73ae63e232dadde049113d88cebaa3011 (patch)
tree0f9ba0fb6fed7541158b20bf68d94e3e18ad4eb2
parent7d2302830f5608785744e440de3fe6770caa2872 (diff)
downloadphp-git-b16ae3b73ae63e232dadde049113d88cebaa3011.tar.gz
add new test
-rwxr-xr-xext/spl/tests/dit_001.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/spl/tests/dit_001.phpt b/ext/spl/tests/dit_001.phpt
new file mode 100755
index 0000000000..62aae99c8b
--- /dev/null
+++ b/ext/spl/tests/dit_001.phpt
@@ -0,0 +1,11 @@
+--TEST--
+SPL: Problem with casting to string
+--FILE--
+<?php
+$d = new DirectoryIterator('.');
+preg_match('/x/', $d);
+var_dump($d);
+?>
+--EXPECTF--
+object(DirectoryIterator)#%d (0) {
+}