Hide tests from web. Probably harmless, but safer to keep it out.
[lhc/web/wiklou.git] / tests / RunTests.php
index 987b1ed..6011ee8 100644 (file)
@@ -1,4 +1,9 @@
 <?php
+
+if( php_sapi_name() != 'cli' ) {
+       die( 'Must be run from the command line.' );
+}
+
 error_reporting( E_ALL );
 define( "MEDIAWIKI", true );