Hide tests from web. Probably harmless, but safer to keep it out.
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Dec 2004 08:42:27 +0000 (08:42 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Dec 2004 08:42:27 +0000 (08:42 +0000)
tests/.htaccess [new file with mode: 0644]
tests/RunTests.php

diff --git a/tests/.htaccess b/tests/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
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 );