]> granicus.if.org Git - php/commitdiff
add new test
authorMarcus Boerger <helly@php.net>
Thu, 9 Sep 2004 07:46:19 +0000 (07:46 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 9 Sep 2004 07:46:19 +0000 (07:46 +0000)
ext/spl/tests/dit_001.phpt [new file with mode: 0755]

diff --git a/ext/spl/tests/dit_001.phpt b/ext/spl/tests/dit_001.phpt
new file mode 100755 (executable)
index 0000000..62aae99
--- /dev/null
@@ -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) {
+}