diff options
author | Etienne Kneuss <colder@php.net> | 2008-06-18 14:54:40 +0000 |
---|---|---|
committer | Etienne Kneuss <colder@php.net> | 2008-06-18 14:54:40 +0000 |
commit | 0f5ddaf4cee92d3040dc03aa623f30a87e1e8b7f (patch) | |
tree | 6e0403d53fe74a9bf8d2999867fb3adb8e24c00b /ext/spl/tests/fixedarray_008.phpt | |
parent | e5e9be2d1aeb3a22933639541b14c734f32c430a (diff) | |
download | php-git-0f5ddaf4cee92d3040dc03aa623f30a87e1e8b7f.tar.gz |
MFH: Rename everything from SplFastArray to SplFixedArray
Diffstat (limited to 'ext/spl/tests/fixedarray_008.phpt')
-rw-r--r-- | ext/spl/tests/fixedarray_008.phpt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ext/spl/tests/fixedarray_008.phpt b/ext/spl/tests/fixedarray_008.phpt new file mode 100644 index 0000000000..8775d61fff --- /dev/null +++ b/ext/spl/tests/fixedarray_008.phpt @@ -0,0 +1,30 @@ +--TEST-- +SPL: FixedArray: Assigning the itself object testing the reference +--FILE-- +<?php + +$b = 3; +$a = new SplFixedArray($b); + +$a[0] = 1; +$a[1] = 2; +$a[2] = $a; + +$a[2][0] = 3; + +foreach ($a as $x) { + if (is_object($x)) { + var_dump($x[0]); + } else { + var_dump($x); + } +} + +var_dump($a->getSize()); + +?> +--EXPECT-- +int(3) +int(2) +int(3) +int(3) |