mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
16 lines
278 B
PHP
16 lines
278 B
PHP
--TEST--
|
|
Cannot directly instantiate Directory class.
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
$d = new Directory();
|
|
var_dump($d);
|
|
} catch (\Throwable $e) {
|
|
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Error: Cannot directly construct Directory, use dir() instead
|