1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00
Files
archived-php-src/ext/hash/tests/serialize-context.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

15 lines
298 B
PHP

--TEST--
Serialize a context
--SKIPIF--
<?php if (!extension_loaded('hash')) echo 'skip';
--FILE--
<?php
$h = hash_init('md5');
try {
var_dump(serialize($h));
} catch (Exception $e) {
echo "Exception: {$e->getMessage()}\n";
}
--EXPECT--
Exception: Serialization of 'HashContext' is not allowed