1--TEST-- 2Check that SplObjectStorage::unserialize returns NULL when non-string param is passed 3--CREDITS-- 4PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) 5--FILE-- 6<?php 7 8$data_provider = array( 9 array(), 10 new stdClass(), 11); 12 13foreach($data_provider as $input) { 14 15 $s = new SplObjectStorage(); 16 17 var_dump($s->unserialize($input)); 18} 19 20?> 21--EXPECTF-- 22Warning: SplObjectStorage::unserialize() expects parameter 1 to be string, array given in %s on line %d 23NULL 24 25Warning: SplObjectStorage::unserialize() expects parameter 1 to be string, object given in %s on line %d 26NULL 27