summaryrefslogtreecommitdiff
path: root/tests/php/phpt/valueiterator
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-11-05 10:25:57 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-11-05 10:25:57 +0100
commitaec191bc6cbb83884466800a750ecad0b37e254f (patch)
treef52fe2b9551056580c5c519fb78a3c5600e1034a /tests/php/phpt/valueiterator
parentaf530282f530580c1ed7bc184df0a727068275e1 (diff)
remove test framework, it never works, most of the bugs found by the test framework turn out to be caused by errors in the tests instead of errors in the real code, people complain about it all the time, and basically this whole test framework causes more problems than it solves, solves issue #215 and solves issue #221
Diffstat (limited to 'tests/php/phpt/valueiterator')
-rw-r--r--tests/php/phpt/valueiterator/001.phpt21
-rw-r--r--tests/php/phpt/valueiterator/002.phpt22
-rw-r--r--tests/php/phpt/valueiterator/003.phpt18
-rw-r--r--tests/php/phpt/valueiterator/004.phpt20
-rw-r--r--tests/php/phpt/valueiterator/005.phpt19
-rw-r--r--tests/php/phpt/valueiterator/006.phpt21
-rw-r--r--tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt15
-rw-r--r--tests/php/phpt/valueiterator/readme1
8 files changed, 0 insertions, 137 deletions
diff --git a/tests/php/phpt/valueiterator/001.phpt b/tests/php/phpt/valueiterator/001.phpt
deleted file mode 100644
index af75ce6..0000000
--- a/tests/php/phpt/valueiterator/001.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-Iterate array
---DESCRIPTION--
-Iterate regular php array
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-require dirname(__FILE__) . '/../../include/valueiterator/1.php';
-
-$arr = array('qwe' => 'qweqweqweqw',5,'asd' => '«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»', 'zxccvx' => 'sdfsecvyh6bug6yfty',);
-
-TestValueIterator\loopValue($arr);
-
-echo PHP_EOL;
---EXPECT--
-Array/Object contains 4 items
-[qwe]=qweqweqweqw
-[0]=5
-[asd]=«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»
-[zxccvx]=sdfsecvyh6bug6yfty \ No newline at end of file
diff --git a/tests/php/phpt/valueiterator/002.phpt b/tests/php/phpt/valueiterator/002.phpt
deleted file mode 100644
index fdffdf7..0000000
--- a/tests/php/phpt/valueiterator/002.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-Iterate object of stdClass
---DESCRIPTION--
-Iterate object of stdClass
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-require dirname(__FILE__) . '/../../include/valueiterator/1.php';
-
-$arr = array('qwe' => 'qweqweqweqw',5,'asd' => '«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»', 'zxccvx' => 'sdfsecvyh6bug6yfty',);
-$obj = (object)$arr;
-
-TestValueIterator\loopValue($obj);
-
-echo PHP_EOL;
---EXPECT--
-Array/Object contains 0 items
-[qwe]=qweqweqweqw
-[0]=5
-[asd]=«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»
-[zxccvx]=sdfsecvyh6bug6yfty \ No newline at end of file
diff --git a/tests/php/phpt/valueiterator/003.phpt b/tests/php/phpt/valueiterator/003.phpt
deleted file mode 100644
index d29d7e5..0000000
--- a/tests/php/phpt/valueiterator/003.phpt
+++ /dev/null
@@ -1,18 +0,0 @@
---TEST--
-Iterate object
---DESCRIPTION--
-Iterate regular php object
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-require dirname(__FILE__) . '/../../include/valueiterator/1.php';
-
-$smpl = new SimpleClass;
-
-TestValueIterator\loopValue($smpl);
-
---EXPECT--
-Array/Object contains 0 items
-[cl0_float]=3.14
-[cl0_str1]=public str1 \ No newline at end of file
diff --git a/tests/php/phpt/valueiterator/004.phpt b/tests/php/phpt/valueiterator/004.phpt
deleted file mode 100644
index 432b500..0000000
--- a/tests/php/phpt/valueiterator/004.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Iterate itarable oblect
---DESCRIPTION--
-class impIterator implements Iterator
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-require dirname(__FILE__) . '/../../include/valueiterator/1.php';
-
-$it = new impIterator;
-
-TestValueIterator\loopValue($it);
-
---EXPECT--
-Array/Object contains 0 items
-[key_0]=firstElement
-[key_1]=secondElement
-[key_2]=lastelEment
-~impIterator \ No newline at end of file
diff --git a/tests/php/phpt/valueiterator/005.phpt b/tests/php/phpt/valueiterator/005.phpt
deleted file mode 100644
index f86845e..0000000
--- a/tests/php/phpt/valueiterator/005.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-Iterate itarable oblect
---DESCRIPTION--
-class impIterAggr1 implements IteratorAggregate
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-require dirname(__FILE__) . '/../../include/valueiterator/1.php';
-
-$iag1 = new impIterAggr1;
-
-TestValueIterator\loopValue($iag1);
-
---EXPECT--
-Array/Object contains 0 items
-[cl0_float]=3.14
-[cl0_str1]=public str1
-~impIterAggr1 \ No newline at end of file
diff --git a/tests/php/phpt/valueiterator/006.phpt b/tests/php/phpt/valueiterator/006.phpt
deleted file mode 100644
index ea97c2b..0000000
--- a/tests/php/phpt/valueiterator/006.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-Iterate itarable oblect
---DESCRIPTION--
-class impIterAggr1 implements IteratorAggregate
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-require dirname(__FILE__) . '/../../include/valueiterator/1.php';
-
-$iag2 = new impIterAggr2;
-
-TestValueIterator\loopValue($iag2);
-
---EXPECT--
-Array/Object contains 0 items
-[key_0]=firstElement
-[key_1]=secondElement
-[key_2]=lastelEment
-~impIterator
-~impIterAggr2
diff --git a/tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt b/tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt
deleted file mode 100644
index 1f18203..0000000
--- a/tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-Iterate internal array
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-
-TestValueIterator\loopArray();
-
---EXPECT--
-Array/Object contains 4 items
-[0]=val0
-[1]=val1
-[third]=val3
-[fourth]=val3
diff --git a/tests/php/phpt/valueiterator/readme b/tests/php/phpt/valueiterator/readme
deleted file mode 100644
index 0156308..0000000
--- a/tests/php/phpt/valueiterator/readme
+++ /dev/null
@@ -1 +0,0 @@
-Tests of basic capabilities