-#!/usr/bin/php
+#!/usr/bin/env php
<?php
/**
* @file
* @ingroup Maintenance
- * @copyright Copyright © Wikimedia Deuschland, 2009
+ * @copyright Copyright © Wikimedia Deuschland, 2009
* @author Hallo Welt! Medienwerkstatt GmbH
* @author Markus Glaser, Dan Nessett, Priyanka Dhanda
* initial idea by Daniel Kinzler
* http://www.gnu.org/copyleft/gpl.html
*/
-$IP = dirname( __DIR__ );
+if ( PHP_SAPI != 'cli' ) {
+ die( "Run me from the command line please.\n" );
+}
define( 'SELENIUMTEST', true );
-//require_once( __DIR__ . '/../maintenance/commandLine.inc' );
require( __DIR__ . '/../maintenance/Maintenance.php' );
require_once( 'PHPUnit/Runner/Version.php' );
# PHPUnit 3.5.0 introduced a nice autoloader based on class name
require_once( 'PHPUnit/Autoload.php' );
} else {
- # Keep the old pre PHPUnit 3.5.0 behaviour for compatibility
+ # Keep the old pre PHPUnit 3.5.0 behavior for compatibility
require_once( 'PHPUnit/TextUI/Command.php' );
}