diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-02-20 20:08:09 -0300 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-02-22 13:03:21 +0100 |
commit | e1cc4863d91c08328ee18b25ba8cf7d85f551e89 (patch) | |
tree | 6604eb517f36d39d79e548095f8fd045ee8ae0d6 /ext/spl | |
parent | d393199e1384cdd58948a35315c195300d5ad7fa (diff) | |
download | php-git-e1cc4863d91c08328ee18b25ba8cf7d85f551e89.tar.gz |
Remove duplicated tests
Diffstat (limited to 'ext/spl')
-rw-r--r-- | ext/spl/tests/fixedarray_017.phpt | 17 | ||||
-rw-r--r-- | ext/spl/tests/iterator_017.phpt | 18 | ||||
-rw-r--r-- | ext/spl/tests/iterator_019.phpt | 33 | ||||
-rw-r--r-- | ext/spl/tests/iterator_020.phpt | 66 |
4 files changed, 0 insertions, 134 deletions
diff --git a/ext/spl/tests/fixedarray_017.phpt b/ext/spl/tests/fixedarray_017.phpt deleted file mode 100644 index fb61ee3647..0000000000 --- a/ext/spl/tests/fixedarray_017.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -SPL: FixedArray: var_dump ---FILE-- -<?php -$a = new SplFixedArray(2); -$a[0] = "foo"; -var_dump(empty($a[0]), empty($a[1]), $a); -?> ---EXPECTF-- -bool(false) -bool(true) -object(SplFixedArray)#%d (2) { - [0]=> - string(3) "foo" - [1]=> - NULL -} diff --git a/ext/spl/tests/iterator_017.phpt b/ext/spl/tests/iterator_017.phpt deleted file mode 100644 index b8013d7311..0000000000 --- a/ext/spl/tests/iterator_017.phpt +++ /dev/null @@ -1,18 +0,0 @@ ---TEST-- -SPL: EmptyIterator ---FILE-- -<?php - -echo "===EmptyIterator===\n"; - -foreach(new LimitIterator(new EmptyIterator(), 0, 3) as $key => $val) -{ - echo "$key=>$val\n"; -} - -?> -===DONE=== -<?php exit(0); ---EXPECT-- -===EmptyIterator=== -===DONE=== diff --git a/ext/spl/tests/iterator_019.phpt b/ext/spl/tests/iterator_019.phpt deleted file mode 100644 index 63a3fce8bf..0000000000 --- a/ext/spl/tests/iterator_019.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -SPL: NoRewindIterator ---FILE-- -<?php - -echo "===Current===\n"; - -$it = new NoRewindIterator(new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C'))); - -echo $it->key() . '=>' . $it->current() . "\n"; - -echo "===Next===\n"; - -$it->next(); - -echo "===Foreach===\n"; - -foreach($it as $key=>$val) -{ - echo "$key=>$val\n"; -} - -?> -===DONE=== -<?php exit(0); ?> ---EXPECT-- -===Current=== -0=>A -===Next=== -===Foreach=== -1=>B -2=>C -===DONE=== diff --git a/ext/spl/tests/iterator_020.phpt b/ext/spl/tests/iterator_020.phpt deleted file mode 100644 index 6da31e391d..0000000000 --- a/ext/spl/tests/iterator_020.phpt +++ /dev/null @@ -1,66 +0,0 @@ ---TEST-- -SPL: AppendIterator ---FILE-- -<?php - -echo "===Empty===\n"; - -$it = new AppendIterator; - -foreach($it as $key=>$val) -{ - echo "$key=>$val\n"; -} - -echo "===Append===\n"; - -$it->append(new ArrayIterator(array(0 => 'A', 1 => 'B'))); - -foreach($it as $key=>$val) -{ - echo "$key=>$val\n"; -} - -echo "===Rewind===\n"; - -foreach($it as $key=>$val) -{ - echo "$key=>$val\n"; -} - -echo "===Append===\n"; - -$it->append(new ArrayIterator(array(2 => 'C', 3 => 'D'))); - -foreach(new NoRewindIterator($it) as $key=>$val) -{ - echo "$key=>$val\n"; -} - -echo "===Rewind===\n"; - -foreach($it as $key=>$val) -{ - echo "$key=>$val\n"; -} - -?> -===DONE=== -<?php exit(0); ?> ---EXPECT-- -===Empty=== -===Append=== -0=>A -1=>B -===Rewind=== -0=>A -1=>B -===Append=== -2=>C -3=>D -===Rewind=== -0=>A -1=>B -2=>C -3=>D -===DONE=== |