php-src/ext/spl/tests/SplObjectStorage_offsetGet.phpt
2009-05-23 15:38:18 +00:00

18 lines
273 B
PHP

--TEST--
Standard success for SplObjectStorage::offsetGet
--CREDITS--
PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
--FILE--
<?php
$s = new SplObjectStorage();
$o1 = new stdClass();
$s[$o1] = 'some_value';
echo $s->offsetGet($o1);
?>
--EXPECT--
some_value