fixed #62433 test for win

This commit is contained in:
Anatoliy Belsky 2012-07-09 12:42:10 +02:00
parent 4323a7aced
commit 2032470e41

View File

@ -5,11 +5,11 @@ Bug #62433 Inconsistent behavior of RecursiveDirectoryIterator to dot files (. a
$dots = array_keys(iterator_to_array(new RecursiveDirectoryIterator(__DIR__)));
$ndots = array_keys(iterator_to_array(new RecursiveDirectoryIterator(__DIR__, FilesystemIterator::SKIP_DOTS)));
var_dump(in_array(__DIR__ . '/.', $dots));
var_dump(in_array(__DIR__ . '/..', $dots));
var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '.', $dots));
var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '..', $dots));
var_dump(in_array(__DIR__ . '/.', $ndots));
var_dump(in_array(__DIR__ . '/..', $ndots));
var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '.', $ndots));
var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '..', $ndots));
?>
--EXPECT--
bool(true)