summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/008-value-arrays.phpt
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/variables/008-value-arrays.phpt
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/variables/008-value-arrays.phpt')
-rw-r--r--tests/php/phpt/variables/008-value-arrays.phpt89
1 files changed, 0 insertions, 89 deletions
diff --git a/tests/php/phpt/variables/008-value-arrays.phpt b/tests/php/phpt/variables/008-value-arrays.phpt
deleted file mode 100644
index 6950780..0000000
--- a/tests/php/phpt/variables/008-value-arrays.phpt
+++ /dev/null
@@ -1,89 +0,0 @@
---TEST--
-Test Php::Value arrays
---DESCRIPTION--
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-
-
-$r = TestVariables\value_arrays();
-
- // To check:
-/*
- $array;
- $array[0] = "apple";
- $array[1] = "banana";
- $array[2] = "tomato";
-
- // an initializer list can be used to create a filled array
- $filled = ["a", "b", "c", "d"];
-
- // create an associative array
- $assoc["apple"] = "green";
- $assoc["banana"] = "yellow";
- $assoc["tomato"] = "green";
-
- // the variables in an array do not all have to be of the same type
- $assoc2["x"] = "info@example.com";
- $assoc2["y"] = NULL;
- $assoc2["z"] = 123;
-
- // nested arrays are possible too
- $assoc3["x"] = "info@example.com";
- $assoc3["y"] = NULL;
- $assoc3["z"][0] = "a";
- $assoc3["z"][1] = "b";
- $assoc3["z"][2] = "c";
-
- $r = [];
- $r["array"] = $array;
- $r["filled"] = $filled;
- $r["assoc"] = $assoc;
- $r["assoc2"] = $assoc2;
- $r["assoc3"] = $assoc3;
-*/
-
-var_export($r);
-
-
-
---EXPECT--
-array (
- 'array' =>
- array (
- 0 => 'apple',
- 1 => 'banana',
- 2 => 'tomato',
- ),
- 'filled' =>
- array (
- 0 => 'a',
- 1 => 'b',
- 2 => 'c',
- 3 => 'd',
- ),
- 'assoc' =>
- array (
- 'apple' => 'green',
- 'banana' => 'yellow',
- 'tomato' => 'green',
- ),
- 'assoc2' =>
- array (
- 'x' => 'info@example.com',
- 'y' => NULL,
- 'z' => 123,
- ),
- 'assoc3' =>
- array (
- 'x' => 'info@example.com',
- 'y' => NULL,
- 'z' =>
- array (
- 0 => 'a',
- 1 => 'b',
- 2 => 'c',
- ),
- ),
-) \ No newline at end of file