From 04f211e38f92b09c18eba3fe635e2182d63a8b8d Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Sun, 15 Jun 2008 11:47:34 +0000 Subject: [PATCH] =?utf8?q?MFH:=20Add=20tests=20for=20iterators=20when=20in?= =?utf8?q?stanciated=20without=20argument=20(by=20Sebastian=20Sch=C3=83?= =?utf8?q?=C2=BCrmann)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ext/spl/tests/iterator_056.phpt | 19 +++++++++++++++++++ ext/spl/tests/iterator_057.phpt | 21 +++++++++++++++++++++ ext/spl/tests/iterator_058.phpt | 24 ++++++++++++++++++++++++ ext/spl/tests/iterator_059.phpt | 17 +++++++++++++++++ ext/spl/tests/iterator_060.phpt | 17 +++++++++++++++++ ext/spl/tests/iterator_061.phpt | 17 +++++++++++++++++ ext/spl/tests/iterator_062.phpt | 18 ++++++++++++++++++ ext/spl/tests/iterator_063.phpt | 17 +++++++++++++++++ ext/spl/tests/iterator_064.phpt | 15 +++++++++++++++ ext/spl/tests/iterator_065.phpt | 15 +++++++++++++++ ext/spl/tests/iterator_066.phpt | 15 +++++++++++++++ ext/spl/tests/iterator_067.phpt | 16 ++++++++++++++++ 12 files changed, 211 insertions(+) create mode 100644 ext/spl/tests/iterator_056.phpt create mode 100644 ext/spl/tests/iterator_057.phpt create mode 100644 ext/spl/tests/iterator_058.phpt create mode 100644 ext/spl/tests/iterator_059.phpt create mode 100644 ext/spl/tests/iterator_060.phpt create mode 100644 ext/spl/tests/iterator_061.phpt create mode 100644 ext/spl/tests/iterator_062.phpt create mode 100644 ext/spl/tests/iterator_063.phpt create mode 100644 ext/spl/tests/iterator_064.phpt create mode 100644 ext/spl/tests/iterator_065.phpt create mode 100644 ext/spl/tests/iterator_066.phpt create mode 100644 ext/spl/tests/iterator_067.phpt 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 -- 2.40.0