php-src/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt
2009-05-23 15:38:18 +00:00

20 lines
359 B
PHP

--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