1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/hash/tests/new-context.phpt
2020-07-10 21:05:28 +02:00

13 lines
250 B
PHP

--TEST--
Hash: Attempt to instantiate a HashContext directly
--FILE--
<?php
try {
new HashContext;
} catch (Error $e) {
echo "Exception: {$e->getMessage()}\n";
}
--EXPECT--
Exception: Call to private HashContext::__construct() from global scope