From: Etienne Kneuss Date: Sun, 22 Jun 2008 16:23:33 +0000 (+0000) Subject: Add some tests to increase code coverage X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1491 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=422bc275888555d4c7e8bf6bd28e6426b1797bb4;p=php Add some tests to increase code coverage --- diff --git a/ext/spl/tests/fixedarray_010.phpt b/ext/spl/tests/fixedarray_010.phpt index 27af3a83a1..9d53475f7d 100644 --- a/ext/spl/tests/fixedarray_010.phpt +++ b/ext/spl/tests/fixedarray_010.phpt @@ -1,12 +1,15 @@ --TEST-- -SPL: FixedArray: Setting size to 0 +SPL: FixedArray: Setting size --FILE-- setSize(2); +$a->setSize(3); $a->setSize(0); print "ok\n"; diff --git a/ext/spl/tests/fixedarray_017.phpt b/ext/spl/tests/fixedarray_017.phpt new file mode 100644 index 0000000000..b22b79863b --- /dev/null +++ b/ext/spl/tests/fixedarray_017.phpt @@ -0,0 +1,20 @@ +--TEST-- +SPL: FixedArray: var_dump +--FILE-- + +--EXPECTF-- +bool(false) +bool(true) +object(SplFixedArray)#1 (1) { + [u"array":u"SplFixedArray":private]=> + array(2) { + [0]=> + unicode(3) "foo" + [1]=> + NULL + } +}