mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
20 lines
335 B
PHP
20 lines
335 B
PHP
--TEST--
|
|
Check that SplObjectStorage::unserialize doesn't 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();
|
|
}
|
|
|
|
?>
|
|
Done
|
|
--EXPECT--
|
|
Done
|