--TEST-- Tests without running the constructor --EXTENSIONS-- dom --FILE-- newInstanceWithoutConstructor(); } catch (ReflectionException $e) { echo $e->getMessage(), "\n"; } } ?> --EXPECT-- Class Dom\HTMLDocument is an internal class marked as final that cannot be instantiated without invoking its constructor Class Dom\XMLDocument is an internal class marked as final that cannot be instantiated without invoking its constructor