xref: /PHP-7.2/ext/spl/tests/spl_005.phpt (revision 610c7fbe)
1--TEST--
2SPL: spl_object_hash()
3--FILE--
4<?php
5
6var_dump(spl_object_hash(new stdClass));
7var_dump(spl_object_hash(42));
8var_dump(spl_object_hash());
9
10?>
11===DONE===
12<?php exit(0); ?>
13--EXPECTF--
14string(32) "%s"
15
16Warning: spl_object_hash() expects parameter 1 to be object, integer given in %sspl_005.php on line %d
17NULL
18
19Warning: spl_object_hash() expects exactly 1 parameter, 0 given in %sspl_005.php on line %d
20NULL
21===DONE===
22