xref: /PHP-7.2/ext/hash/tests/new-context.phpt (revision b7f59be9)
1--TEST--
2Attempt to instantiate a HashContext directly
3--SKIPIF--
4<?php if (!extension_loaded('hash')) echo 'skip';
5--FILE--
6<?php
7
8try {
9  new HashContext;
10} catch (Error $e) {
11  echo "Exception: {$e->getMessage()}\n";
12}
13--EXPECTF--
14Exception: Call to private HashContext::__construct() from invalid context
15