xref: /PHP-7.4/ext/hash/tests/new-context.phpt (revision 033cafac)
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--EXPECT--
12Exception: Call to private HashContext::__construct() from invalid context
13