Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/General.php |
— | — | @@ -1,4 +1,7 @@ |
2 | 2 | <?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 | +} |
3 | 6 | require_once 'PHPUnit/Framework.php'; |
4 | 7 | require_once 'common.php'; |
5 | 8 | |
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/FileDetection.php |
— | — | @@ -1,4 +1,9 @@ |
2 | 2 | <?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 | + |
3 | 8 | require_once 'PHPUnit/Framework.php'; |
4 | 9 | require_once 'common.php'; |
5 | 10 | |
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/Authentication.php |
— | — | @@ -1,4 +1,7 @@ |
2 | 2 | <?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 | +} |
3 | 6 | require_once 'PHPUnit/Framework.php'; |
4 | 7 | require_once 'common.php'; |
5 | 8 | |
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/UTF8.php |
— | — | @@ -1,4 +1,7 @@ |
2 | 2 | <?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 | +} |
3 | 6 | require_once 'PHPUnit/Framework.php'; |
4 | 7 | require_once 'common.php'; |
5 | 8 | |
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/Comprehensive.php |
— | — | @@ -1,4 +1,7 @@ |
2 | 2 | <?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 | +} |
3 | 6 | require_once 'PHPUnit/Framework.php'; |
4 | 7 | require_once 'common.php'; |
5 | 8 | |
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/cloudfiles_ini.php |
— | — | @@ -1,4 +1,8 @@ |
2 | 2 | <?php |
| 3 | +if ( php_sapi_name() !== 'cli' ) { |
| 4 | + die( "This is not a valid web entry point." ); |
| 5 | +} |
| 6 | + |
3 | 7 | $VERBOSE = False; # informational messages to stdout |
4 | 8 | $USER = ""; # Rackspace Cloud Username |
5 | 9 | $API_KEY = ""; # Rackspace Cloud API Key |
Index: trunk/extensions/SwiftCloudFiles/php-cloudfiles-1.7.10/tests/common.php |
— | — | @@ -1,4 +1,7 @@ |
2 | 2 | <?php |
| 3 | +if ( php_sapi_name() !== 'cli' ) { |
| 4 | + die( "This is not a valid web entry point." ); |
| 5 | +} |
3 | 6 | if (empty($_ENV)) { |
4 | 7 | $_ENV = $_SERVER; |
5 | 8 | } |