aboutsummaryrefslogtreecommitdiffstats
path: root/tests/selenium
diff options
context:
space:
mode:
authorPlatonides <platonides@gmail.com>2013-02-25 21:09:38 +0100
committerPlatonides <platonides@gmail.com>2013-02-25 23:11:51 +0100
commitd01be611d0ccc9aa60eede8b64b3ca0724d27796 (patch)
tree9cd7a70f8f7e145e5d7febc248dfd9d5bae3c336 /tests/selenium
parent0d9c666dc70f1b0a15703c4932947b18cfbcc734 (diff)
downloadmediawikicore-d01be611d0ccc9aa60eede8b64b3ca0724d27796.tar.gz
mediawikicore-d01be611d0ccc9aa60eede8b64b3ca0724d27796.zip
Script calling cleanups
· Use env(1) in shebangs instead of hardcoding paths. · $IP is already set in the constructor of Maintenance classes. · Add sapi guard to some phpunit files. Change-Id: I6c6fd6c61e2861b5992f2ccd67a4e3f62e2c445e
Diffstat (limited to 'tests/selenium')
-rw-r--r--tests/selenium/installer/MediaWikiInstallerTestSuite.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/selenium/installer/MediaWikiInstallerTestSuite.php b/tests/selenium/installer/MediaWikiInstallerTestSuite.php
index 1356ce662983..f17911310f2c 100644
--- a/tests/selenium/installer/MediaWikiInstallerTestSuite.php
+++ b/tests/selenium/installer/MediaWikiInstallerTestSuite.php
@@ -1,5 +1,4 @@
<?php
-
/**
* MediaWikiInstallerTestSuite
*
@@ -27,6 +26,10 @@
*
*/
+if ( PHP_SAPI != 'cli' ) {
+ die( "Run me from the command line please.\n" );
+}
+
require_once 'PHPUnit/Framework/TestSuite.php';
require_once ( __DIR__ . '/MediaWikiUserInterfaceTestCase.php' );