summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/001-process_globals.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/001-process_globals.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/001-process_globals.phpt')
-rw-r--r--tests/php/phpt/variables/001-process_globals.phpt47
1 files changed, 0 insertions, 47 deletions
diff --git a/tests/php/phpt/variables/001-process_globals.phpt b/tests/php/phpt/variables/001-process_globals.phpt
deleted file mode 100644
index 022e99c..0000000
--- a/tests/php/phpt/variables/001-process_globals.phpt
+++ /dev/null
@@ -1,47 +0,0 @@
---TEST--
-Global variables in PHP-CPP
---DESCRIPTION--
-The author of the original: Jasper van Eck<jasper.vaneck@copernica.com>
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-
-// we first need to set a number of globals
-$b = 10;
-$d = function($a,$b,$c) {
- return $a+$b+$c;
-};
-
-// fun global var
-$e = array(
- function($a) {
- return $a;
- }
-);
-
-
-// call the C++ function that will do something
-$d = TestVariables\process_globals();
-
-// the global variable $a should not have the value 1
-echo("a = $a\n");
-
-// the variable $b should not be 11
-echo("b = $b\n");
-
-// $c should be an array with value 200
-echo("c['member'] = ".$c['member']."\n");
-
-// $d is overwritten and now is 6
-echo("d = $d\n");
-
-// e should be replaced by a string
-echo("e = $e\n");
-
---EXPECT--
-a = 1
-b = 11
-c['member'] = 200
-d = 6
-e = hello \ No newline at end of file