Annotation of embedaddon/php/ext/spl/tests/SplObjectStorage_offsetGet_missing_object.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Check that SplObjectStorage::offsetGet throws exception when non-existing object is requested
3: --CREDITS--
4: PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
5: --FILE--
6: <?php
7:
8: $s = new SplObjectStorage();
9: $o1 = new stdClass();
10:
11: try {
12: $s->offsetGet($o1);
13: } catch (UnexpectedValueException $e) {
14: echo $e->getMessage();
15: }
16:
17: ?>
18: --EXPECT--
19: Object not found
20:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>