cvs: php-src /ext/spl/tests array_object.phpt
| From: | Marcus Boerger | Date: | Sat, 13 Mar 2004 20:07:24 +0000 |
| Subject: | cvs: php-src /ext/spl/tests array_object.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-26620@lists.php.net to get a copy of this message | ||
helly Sat Mar 13 15:07:24 2004 EDT
Modified files:
/php-src/ext/spl/tests array_object.phpt
Log:
Update test with check for [] assignment
http://cvs.php.net/diff.php/php-src/ext/spl/tests/array_object.phpt?r1=1.2&r2=1.3&ty=u
Index: php-src/ext/spl/tests/array_object.phpt
diff -u php-src/ext/spl/tests/array_object.phpt:1.2 php-src/ext/spl/tests/array_object.phpt:1.3
--- php-src/ext/spl/tests/array_object.phpt:1.2 Thu Feb 12 15:52:46 2004
+++ php-src/ext/spl/tests/array_object.phpt Sat Mar 13 15:07:22 2004
@@ -30,6 +30,10 @@
unset($ar["c"]);
var_dump($ar);
+$ar[] = '3';
+$ar[] = 4;
+var_dump($ar);
+
?>
===DONE===
<?php exit(0); ?>
@@ -86,4 +90,14 @@
[2]=>
int(2)
}
+object(ArrayObject)#1 (4) {
+ [0]=>
+ int(0)
+ [2]=>
+ int(2)
+ [4]=>
+ string(1) "3"
+ [5]=>
+ int(4)
+}
===DONE===