r110020 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110019‎ | r110020 | r110021 >
Date:19:42, 25 January 2012
Author:aaron
Status:ok
Tags:
Comment:
r109227: prevent tests from running via web requests
Modified paths:
  • /trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/Authentication.php (modified) (history)
  • /trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/Comprehensive.php (modified) (history)
  • /trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/FileDetection.php (modified) (history)
  • /trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/General.php (modified) (history)
  • /trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/UTF8.php (modified) (history)
  • /trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/cloudfiles_ini.php (modified) (history)
  • /trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/common.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/General.php
@@ -1,4 +1,7 @@
22 <?php # -*- compile-command: (concat "phpunit " buffer-file-name) -*-
 3+if ( php_sapi_name() !== 'cli' ) {
 4+ die( "This is not a valid web entry point." );
 5+}
36 require_once 'PHPUnit/Framework.php';
47 require_once 'common.php';
58
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/FileDetection.php
@@ -1,4 +1,9 @@
22 <?php # -*- compile-command: (concat "phpunit " buffer-file-name) -*-
 3+
 4+if ( php_sapi_name() !== 'cli' ) {
 5+ die( "This is not a valid web entry point." );
 6+}
 7+
38 require_once 'PHPUnit/Framework.php';
49 require_once 'common.php';
510
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/Authentication.php
@@ -1,4 +1,7 @@
22 <?php # -*- compile-command: (concat "phpunit " buffer-file-name) -*-
 3+if ( php_sapi_name() !== 'cli' ) {
 4+ die( "This is not a valid web entry point." );
 5+}
36 require_once 'PHPUnit/Framework.php';
47 require_once 'common.php';
58
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/UTF8.php
@@ -1,4 +1,7 @@
22 <?php # -*- compile-command: (concat "phpunit " buffer-file-name) -*-
 3+if ( php_sapi_name() !== 'cli' ) {
 4+ die( "This is not a valid web entry point." );
 5+}
36 require_once 'PHPUnit/Framework.php';
47 require_once 'common.php';
58
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/Comprehensive.php
@@ -1,4 +1,7 @@
22 <?php # -*- compile-command: (concat "phpunit " buffer-file-name) -*-
 3+if ( php_sapi_name() !== 'cli' ) {
 4+ die( "This is not a valid web entry point." );
 5+}
36 require_once 'PHPUnit/Framework.php';
47 require_once 'common.php';
58
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/cloudfiles_ini.php
@@ -1,4 +1,8 @@
22 <?php
 3+if ( php_sapi_name() !== 'cli' ) {
 4+ die( "This is not a valid web entry point." );
 5+}
 6+
37 $VERBOSE = False; # informational messages to stdout
48 $USER = ""; # Rackspace Cloud Username
59 $API_KEY = ""; # Rackspace Cloud API Key
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/common.php
@@ -1,4 +1,7 @@
22 <?php
 3+if ( php_sapi_name() !== 'cli' ) {
 4+ die( "This is not a valid web entry point." );
 5+}
36 if (empty($_ENV)) {
47 $_ENV = $_SERVER;
58 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r109227Added php-cloudfiles (verbatim) with a thin MediaWiki extension wrapper aroun...aaron22:00, 17 January 2012

Status & tagging log