1--TEST--
2Check that SplObjectStorage::unserialize throws exception when NULL passed
3--CREDITS--
4PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
5--FILE--
6<?php
7
8$s = new SplObjectStorage();
9
10try {
11    $s->unserialize(NULL);
12} catch(UnexpectedValueException $e) {
13    echo $e->getMessage();
14}
15
16?>
17--EXPECTF--
18Empty serialized string cannot be empty
19
20