From: Etienne Kneuss Date: Sun, 15 Jun 2008 11:47:34 +0000 (+0000) Subject: MFH: Add tests for iterators when instanciated without argument (by Sebastian SchÃ... X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04f211e38f92b09c18eba3fe635e2182d63a8b8d;p=php MFH: Add tests for iterators when instanciated without argument (by Sebastian Schürmann) --- diff --git a/ext/spl/tests/iterator_056.phpt b/ext/spl/tests/iterator_056.phpt new file mode 100644 index 0000000000..4b0e75a7d4 --- /dev/null +++ b/ext/spl/tests/iterator_056.phpt @@ -0,0 +1,19 @@ +--TEST-- +SPL: FilterIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +InvalidArgumentException thrown diff --git a/ext/spl/tests/iterator_057.phpt b/ext/spl/tests/iterator_057.phpt new file mode 100644 index 0000000000..602c125015 --- /dev/null +++ b/ext/spl/tests/iterator_057.phpt @@ -0,0 +1,21 @@ +--TEST-- +SPL: ArrayIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +no Exception thrown diff --git a/ext/spl/tests/iterator_058.phpt b/ext/spl/tests/iterator_058.phpt new file mode 100644 index 0000000000..3f65ecb7e4 --- /dev/null +++ b/ext/spl/tests/iterator_058.phpt @@ -0,0 +1,24 @@ +--TEST-- +SPL: Iterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +no Exception thrown diff --git a/ext/spl/tests/iterator_059.phpt b/ext/spl/tests/iterator_059.phpt new file mode 100644 index 0000000000..8c579ae43a --- /dev/null +++ b/ext/spl/tests/iterator_059.phpt @@ -0,0 +1,17 @@ +--TEST-- +SPL: CachingIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +InvalidArgumentException thrown diff --git a/ext/spl/tests/iterator_060.phpt b/ext/spl/tests/iterator_060.phpt new file mode 100644 index 0000000000..0c3b6c21d2 --- /dev/null +++ b/ext/spl/tests/iterator_060.phpt @@ -0,0 +1,17 @@ +--TEST-- +SPL: RecursiveCachingIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +InvalidArgumentException thrown diff --git a/ext/spl/tests/iterator_061.phpt b/ext/spl/tests/iterator_061.phpt new file mode 100644 index 0000000000..472f8da196 --- /dev/null +++ b/ext/spl/tests/iterator_061.phpt @@ -0,0 +1,17 @@ +--TEST-- +SPL: ParentIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +InvalidArgumentException thrown diff --git a/ext/spl/tests/iterator_062.phpt b/ext/spl/tests/iterator_062.phpt new file mode 100644 index 0000000000..59a1dfacf0 --- /dev/null +++ b/ext/spl/tests/iterator_062.phpt @@ -0,0 +1,18 @@ +--TEST-- +SPL: RecursiveIteratorIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +InvalidArgumentException thrown diff --git a/ext/spl/tests/iterator_063.phpt b/ext/spl/tests/iterator_063.phpt new file mode 100644 index 0000000000..4d4112bac5 --- /dev/null +++ b/ext/spl/tests/iterator_063.phpt @@ -0,0 +1,17 @@ +--TEST-- +SPL: LimitIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +InvalidArgumentException thrown diff --git a/ext/spl/tests/iterator_064.phpt b/ext/spl/tests/iterator_064.phpt new file mode 100644 index 0000000000..6a62e6c9c5 --- /dev/null +++ b/ext/spl/tests/iterator_064.phpt @@ -0,0 +1,15 @@ +--TEST-- +SPL: CachingIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +InvalidArgumentException thrown diff --git a/ext/spl/tests/iterator_065.phpt b/ext/spl/tests/iterator_065.phpt new file mode 100644 index 0000000000..9ea2974cd4 --- /dev/null +++ b/ext/spl/tests/iterator_065.phpt @@ -0,0 +1,15 @@ +--TEST-- +SPL: RecursiveCachingIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +InvalidArgumentException thrown diff --git a/ext/spl/tests/iterator_066.phpt b/ext/spl/tests/iterator_066.phpt new file mode 100644 index 0000000000..008c47ccc5 --- /dev/null +++ b/ext/spl/tests/iterator_066.phpt @@ -0,0 +1,15 @@ +--TEST-- +SPL: NoRewindIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +InvalidArgumentException thrown diff --git a/ext/spl/tests/iterator_067.phpt b/ext/spl/tests/iterator_067.phpt new file mode 100644 index 0000000000..e05a48d4e0 --- /dev/null +++ b/ext/spl/tests/iterator_067.phpt @@ -0,0 +1,16 @@ +--TEST-- +SPL: AppendIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- + +--EXPECT-- +no exception