diff options
Diffstat (limited to 'ext/spl/tests/dllist_012.phpt')
| -rw-r--r-- | ext/spl/tests/dllist_012.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/spl/tests/dllist_012.phpt b/ext/spl/tests/dllist_012.phpt new file mode 100644 index 0000000..4eec9bd --- /dev/null +++ b/ext/spl/tests/dllist_012.phpt @@ -0,0 +1,21 @@ +--TEST-- +SPL: DoublyLinkedList: recursive var_dump +--FILE-- +<?php +$a = new SplDoublyLinkedList; +$a[] = $a; + +var_dump($a); +?> +===DONE=== +--EXPECTF-- +object(SplDoublyLinkedList)#%d (2) { + ["flags":"SplDoublyLinkedList":private]=> + int(0) + ["dllist":"SplDoublyLinkedList":private]=> + array(1) { + [0]=> + *RECURSION* + } +} +===DONE=== |
