php-src/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.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

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