repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updates to Tomato RAF including NGINX && PHP
[tomato.git]
/
release
/
src
/
router
/
php
/
ext
/
spl
/
tests
/
SplObjectStorage_offsetGet.phpt
blob
e73f6b1bd694c9cd14b3121702483e3d31cb2a47
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