From f741f6cd6e06a1069611752636a62f8ceaf68f34 Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Sun, 22 Jun 2008 16:25:02 +0000 Subject: [PATCH] MFH: 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 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..d41a24f0f2 --- /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) { + ["array":"SplFixedArray":private]=> + array(2) { + [0]=> + string(3) "foo" + [1]=> + NULL + } +} -- 2.50.1