mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
add test for ArrayObject acting as array (for 5.3)
This commit is contained in:
parent
feeaa6568e
commit
4e3929d278
14
tests/classes/arrayobject_001.phpt
Normal file
14
tests/classes/arrayobject_001.phpt
Normal file
@ -0,0 +1,14 @@
|
||||
--TEST--
|
||||
Ensure that ArrayObject acts like an array
|
||||
--SKIPIF--
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$a = new ArrayObject;
|
||||
$a['foo'] = 'bar';
|
||||
echo reset($a);
|
||||
echo count($a);
|
||||
echo current($a);
|
||||
?>
|
||||
--EXPECT--
|
||||
bar1bar
|
Loading…
Reference in New Issue
Block a user