summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt
blob: 6934c3af1bf885813da88acde04a2444d7b5ccb2 (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 doesn't throws exception when empty string passed
--CREDITS--
PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
--FILE--
<?php

$s = new SplObjectStorage();

try {
    $s->unserialize('');
} catch(UnexpectedValueException $e) {
    echo $e->getMessage();
}

?>
Done
--EXPECT--
Done