mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
add new test
This commit is contained in:
parent
7d2302830f
commit
b16ae3b73a
11
ext/spl/tests/dit_001.phpt
Executable file
11
ext/spl/tests/dit_001.phpt
Executable 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) {
|
||||
}
|
Loading…
Reference in New Issue
Block a user