1--TEST--
2Cannot directly instantiate Directory class.
3--FILE--
4<?php
5
6try {
7    $d = new Directory();
8    var_dump($d);
9} catch (\Throwable $e) {
10    echo $e::class, ': ', $e->getMessage(), PHP_EOL;
11}
12
13?>
14--EXPECT--
15Error: Cannot directly construct Directory, use dir() instead
16