]> granicus.if.org Git - php/commitdiff
add new test
authorAntony Dovgal <tony2001@php.net>
Sat, 7 Jun 2008 12:49:35 +0000 (12:49 +0000)
committerAntony Dovgal <tony2001@php.net>
Sat, 7 Jun 2008 12:49:35 +0000 (12:49 +0000)
ext/spl/tests/fastarray_004.phpt [new file with mode: 0644]

diff --git a/ext/spl/tests/fastarray_004.phpt b/ext/spl/tests/fastarray_004.phpt
new file mode 100644 (file)
index 0000000..1ffbeb9
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+SPL: FastArray: adding new elements
+--FILE--
+<?php
+
+$a = new SplFastArray(10);
+
+try {
+       $a[] = 1;
+} catch (Exception $e) {
+       var_dump($e->getMessage());
+}
+
+?>
+===DONE===
+--EXPECTF--
+string(29) "Index invalid or out of range"
+===DONE===