colder Sun Jun 22 16:23:33 2008 UTC
Added files:
/php-src/ext/spl/tests fixedarray_017.phpt
Modified files:
/php-src/ext/spl/tests fixedarray_010.phpt
Log:
Add some tests to increase code coverage
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/fixedarray_010.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/spl/tests/fixedarray_010.phpt
diff -u php-src/ext/spl/tests/fixedarray_010.phpt:1.1
php-src/ext/spl/tests/fixedarray_010.phpt:1.2
--- php-src/ext/spl/tests/fixedarray_010.phpt:1.1 Wed Jun 18 14:54:28 2008
+++ php-src/ext/spl/tests/fixedarray_010.phpt Sun Jun 22 16:23:33 2008
@@ -1,12 +1,15 @@
--TEST--
-SPL: FixedArray: Setting size to 0
+SPL: FixedArray: Setting size
--FILE--
<?php
-$a = new SplFixedArray(1);
+$a = new SplFixedArray(0);
+$a = new SplFixedArray(3);
$a[0] = 1;
+$a->setSize(2);
+$a->setSize(3);
$a->setSize(0);
print "ok\n";
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/fixedarray_017.phpt?view=markup&rev=1.1
Index: php-src/ext/spl/tests/fixedarray_017.phpt
+++ php-src/ext/spl/tests/fixedarray_017.phpt
--TEST--
SPL: FixedArray: var_dump
--FILE--
<?php
$a = new SplFixedArray(2);
$a[0] = "foo";
var_dump(empty($a[0]), empty($a[1]), $a);
?>
--EXPECTF--
bool(false)
bool(true)
object(SplFixedArray)#1 (1) {
[u"array":u"SplFixedArray":private]=>
array(2) {
[0]=>
unicode(3) "foo"
[1]=>
NULL
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php