1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/spl/tests/DirectoryIterator_empty_constructor.phpt
2024-08-21 21:12:17 +01:00

16 lines
377 B
PHP

--TEST--
DirectoryIterator: Test empty value to DirectoryIterator constructor
--CREDITS--
Havard Eide <nucleuz@gmail.com>
#PHPTestFest2009 Norway 2009-06-09 \o/
--FILE--
<?php
try {
$it = new DirectoryIterator("");
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
DirectoryIterator::__construct(): Argument #1 ($directory) must not be empty