mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
20 lines
359 B
Plaintext
20 lines
359 B
Plaintext
|
--TEST--
|
||
|
Check that SplObjectStorage::unserialize throws exception when NULL passed
|
||
|
--CREDITS--
|
||
|
PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$s = new SplObjectStorage();
|
||
|
|
||
|
try {
|
||
|
$s->unserialize(NULL);
|
||
|
} catch(UnexpectedValueException $e) {
|
||
|
echo $e->getMessage();
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Empty serialized string cannot be empty
|
||
|
|