--TEST-- Check that SplObjectStorage::unserialize throws exception when numeric value passed --CREDITS-- PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) --FILE-- unserialize($input); } catch(UnexpectedValueException $e) { echo $e->getMessage() . PHP_EOL; } } ?> --EXPECTF-- Error at offset %d of %d bytes Error at offset %d of %d bytes Error at offset %d of %d bytes Error at offset %d of %d bytes Error at offset %d of %d bytes