summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt
blob: 4c2dd75e144b83f464ae1820a6526cd69286de16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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