diff options
Diffstat (limited to 'tests/php/phpt/valueiterator')
-rw-r--r-- | tests/php/phpt/valueiterator/001.phpt | 21 | ||||
-rw-r--r-- | tests/php/phpt/valueiterator/002.phpt | 22 | ||||
-rw-r--r-- | tests/php/phpt/valueiterator/003.phpt | 18 | ||||
-rw-r--r-- | tests/php/phpt/valueiterator/004.phpt | 20 | ||||
-rw-r--r-- | tests/php/phpt/valueiterator/005.phpt | 19 | ||||
-rw-r--r-- | tests/php/phpt/valueiterator/006.phpt | 21 | ||||
-rw-r--r-- | tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt | 15 | ||||
-rw-r--r-- | tests/php/phpt/valueiterator/readme | 1 |
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 |