add new test

This commit is contained in:
Marcus Boerger 2004-09-09 07:46:19 +00:00
parent 7d2302830f
commit b16ae3b73a

11
ext/spl/tests/dit_001.phpt Executable file
View File

@ -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) {
}