xref: /PHP-8.3/ext/hash/tests/new-context.phpt (revision 7aacc705)
1--TEST--
2Hash: Attempt to instantiate a HashContext directly
3--FILE--
4<?php
5
6try {
7  new HashContext;
8} catch (Error $e) {
9  echo "Exception: {$e->getMessage()}\n";
10}
11?>
12--EXPECT--
13Exception: Call to private HashContext::__construct() from global scope
14