From 17e963569c479ef12167106f2cdd80fb96bdf7d2 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sat, 9 Oct 2010 18:15:37 +0000 Subject: [PATCH] Readd after r72566 a phpunit.php so that globals are kept global. --- maintenance/tests/phpunit/Makefile | 2 +- maintenance/tests/phpunit/bootstrap.php | 34 ++++++++----------------- maintenance/tests/phpunit/phpunit.php | 27 ++++++++++++++++++++ 3 files changed, 39 insertions(+), 24 deletions(-) create mode 100755 maintenance/tests/phpunit/phpunit.php diff --git a/maintenance/tests/phpunit/Makefile b/maintenance/tests/phpunit/Makefile index d57ee5d3c1..0784c4ac45 100644 --- a/maintenance/tests/phpunit/Makefile +++ b/maintenance/tests/phpunit/Makefile @@ -3,7 +3,7 @@ SHELL = /bin/sh CONFIG_FILE = $(shell pwd)/suite.xml FLAGS = -PU = phpunit --configuration ${CONFIG_FILE} +PU = php phpunit.php --configuration ${CONFIG_FILE} all test: warning diff --git a/maintenance/tests/phpunit/bootstrap.php b/maintenance/tests/phpunit/bootstrap.php index c278af130f..e348b2c13f 100644 --- a/maintenance/tests/phpunit/bootstrap.php +++ b/maintenance/tests/phpunit/bootstrap.php @@ -1,31 +1,18 @@ -" ) ) { @@ -74,3 +61,4 @@ abstract class MediaWikiTestSetup extends PHPUnit_Framework_TestCase { } } } + diff --git a/maintenance/tests/phpunit/phpunit.php b/maintenance/tests/phpunit/phpunit.php new file mode 100755 index 0000000000..6fde6112ea --- /dev/null +++ b/maintenance/tests/phpunit/phpunit.php @@ -0,0 +1,27 @@ +#!/usr/bin/env php +