diff options
Diffstat (limited to 'ext/spl/tests/SplObjectStorage_var_dump.phpt')
-rw-r--r-- | ext/spl/tests/SplObjectStorage_var_dump.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/spl/tests/SplObjectStorage_var_dump.phpt b/ext/spl/tests/SplObjectStorage_var_dump.phpt new file mode 100644 index 0000000..0439f46 --- /dev/null +++ b/ext/spl/tests/SplObjectStorage_var_dump.phpt @@ -0,0 +1,23 @@ +--TEST-- +SPL: SplObjectStorage: recursive var_dump +--FILE-- +<?php +$o = new SplObjectStorage(); + +$o[new StdClass] = $o; + +var_dump($o); +--EXPECTF-- +object(SplObjectStorage)#%d (1) { + ["storage":"SplObjectStorage":private]=> + array(1) { + ["%s"]=> + array(2) { + ["obj"]=> + object(stdClass)#%d (0) { + } + ["inf"]=> + *RECURSION* + } + } +} |