1--TEST-- 2Check that SplObjectStorage::offsetGet throws exception when non-existing object is requested 3--CREDITS-- 4PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) 5--FILE-- 6<?php 7 8$s = new SplObjectStorage(); 9$o1 = new stdClass(); 10 11try { 12 $s->offsetGet($o1); 13} catch (UnexpectedValueException $e) { 14 echo $e->getMessage(); 15} 16 17?> 18--EXPECT-- 19Object not found 20 21