From 422bc275888555d4c7e8bf6bd28e6426b1797bb4 Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Sun, 22 Jun 2008 16:23:33 +0000 Subject: [PATCH] Add some tests to increase code coverage --- ext/spl/tests/fixedarray_010.phpt | 7 +++++-- ext/spl/tests/fixedarray_017.phpt | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 ext/spl/tests/fixedarray_017.phpt diff --git a/ext/spl/tests/fixedarray_010.phpt b/ext/spl/tests/fixedarray_010.phpt index 27af3a83a14..9d53475f7d3 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 00000000000..b22b79863b1 --- /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 + } +}