Annotation of embedaddon/php/ext/spl/tests/SplObjectStorage_offsetGet.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Standard success for SplObjectStorage::offsetGet
                      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: $s[$o1] = 'some_value';
                     11: 
                     12: echo $s->offsetGet($o1);
                     13: 
                     14: ?>
                     15: --EXPECT--
                     16: some_value
                     17: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>