]> granicus.if.org Git - php/commitdiff
Rename *.php files in Zend/tests to *.inc
authorPeter Kokot <peterkokot@gmail.com>
Fri, 21 Sep 2018 18:25:04 +0000 (20:25 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 23 Sep 2018 15:20:42 +0000 (17:20 +0200)
*.php files are ignored by Git and a better practice might be to rename
PHP included files for tests.

21 files changed:
Zend/tests/bug39542.phpt
Zend/tests/bug39542/bug39542.inc [moved from Zend/tests/bug39542/bug39542.php with 100% similarity]
Zend/tests/bug67436/a.inc [moved from Zend/tests/bug67436/a.php with 100% similarity]
Zend/tests/bug67436/b.inc [moved from Zend/tests/bug67436/b.php with 100% similarity]
Zend/tests/bug67436/bug67436.phpt
Zend/tests/bug67436/bug67436_nohandler.phpt
Zend/tests/bug67436/c.inc [moved from Zend/tests/bug67436/c.php with 100% similarity]
Zend/tests/use_const/includes/foo_bar.inc [moved from Zend/tests/use_const/includes/foo_bar.php with 100% similarity]
Zend/tests/use_const/includes/foo_php_version.inc [moved from Zend/tests/use_const/includes/foo_php_version.php with 100% similarity]
Zend/tests/use_const/includes/global_bar.inc [moved from Zend/tests/use_const/includes/global_bar.php with 100% similarity]
Zend/tests/use_const/includes/global_baz.inc [moved from Zend/tests/use_const/includes/global_baz.php with 100% similarity]
Zend/tests/use_const/no_global_fallback.phpt
Zend/tests/use_const/shadow_core.phpt
Zend/tests/use_const/shadow_global.phpt
Zend/tests/use_function/includes/foo_bar.inc [moved from Zend/tests/use_function/includes/foo_bar.php with 100% similarity]
Zend/tests/use_function/includes/foo_strlen.inc [moved from Zend/tests/use_function/includes/foo_strlen.php with 100% similarity]
Zend/tests/use_function/includes/global_bar.inc [moved from Zend/tests/use_function/includes/global_bar.php with 100% similarity]
Zend/tests/use_function/includes/global_baz.inc [moved from Zend/tests/use_function/includes/global_baz.php with 100% similarity]
Zend/tests/use_function/no_global_fallback.phpt
Zend/tests/use_function/shadow_core.phpt
Zend/tests/use_function/shadow_global.phpt

index 2008fe140a313d7f98d81f2d70b0b6a56c5cc449..1409c4181c697c04c650c940054c15c6a41886f8 100644 (file)
@@ -11,7 +11,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
 }
 
 spl_autoload_register(function ($class) {
-    if (!require_once($class.'.php')) {
+    if (!require_once($class.'.inc')) {
         error_log('Error: Autoload class: '.$class.' not found!');
     }
 });
index 8a6b3f80270e4f17ecc28d083063d09c282e50b1..2bd06a074593e00f1f0f389f4ad20f5ba84418d5 100644 (file)
@@ -9,7 +9,7 @@ error_reporting=-1
 
 spl_autoload_register(function($classname) {
        if (in_array($classname, array('a','b','c'))) {
-               require_once __DIR__ . "/{$classname}.php";
+               require_once __DIR__ . "/{$classname}.inc";
        }
 });
 
index 232110797a606f0d78250c911260fffe1ccf83ce..088761e00b6269c6eed64406fd0c1b94ebd6790f 100644 (file)
@@ -5,7 +5,7 @@ bug67436: E_STRICT instead of custom error handler
 
 spl_autoload_register(function($classname) {
        if (in_array($classname, array('a','b','c'))) {
-               require_once __DIR__ . "/{$classname}.php";
+               require_once __DIR__ . "/{$classname}.inc";
        }
 });
 
@@ -15,6 +15,6 @@ $b = new b();
 $b->test();
 
 --EXPECTF--
-Warning: Declaration of b::test() should be compatible with a::test($arg = c::TESTCONSTANT) in %s%ebug67436%eb.php on line %d
+Warning: Declaration of b::test() should be compatible with a::test($arg = c::TESTCONSTANT) in %s%ebug67436%eb.inc on line %d
 b::test()
 a::test(c::TESTCONSTANT)
index 3adebd68f55dee2b7d7a490806b2dc507d624ef4..f9ee6055153b2913cbfa203bffa728021530b3eb 100644 (file)
@@ -3,7 +3,7 @@ non-existent imported constants should not be looked up in the global table
 --FILE--
 <?php
 
-require 'includes/global_baz.php';
+require 'includes/global_baz.inc';
 
 use const foo\bar\baz;
 var_dump(baz);
index 5dbf396e63803989f9d45626dd9424ddc5f801ac..55dc03df407482b63bda7132d12336441c7948d8 100644 (file)
@@ -3,7 +3,7 @@ shadowing a global core constant with a local version
 --FILE--
 <?php
 
-require 'includes/foo_php_version.php';
+require 'includes/foo_php_version.inc';
 
 use const foo\PHP_VERSION;
 
index 930cc9f0b87788a4a0bc24d4f4131cc4da786dfc..522f9725064c5a46e8365d8f13abd9830a1f64d2 100644 (file)
@@ -4,8 +4,8 @@ shadowing a global constant with a local version
 <?php
 
 namespace {
-    require 'includes/global_bar.php';
-    require 'includes/foo_bar.php';
+    require 'includes/global_bar.inc';
+    require 'includes/foo_bar.inc';
 }
 
 namespace {
index 1277d4e2c2ab70c1d330123385a4c6b8b4286667..106fe4b2f8a7485dee34ecd03a9c6b8b13a82762 100644 (file)
@@ -3,7 +3,7 @@ non-existent imported functions should not be looked up in the global table
 --FILE--
 <?php
 
-require 'includes/global_baz.php';
+require 'includes/global_baz.inc';
 
 use function foo\bar\baz;
 var_dump(baz());
index 8f92ff1e1be86ca346ce48b714c6fb51b6dd4217..8442d77b8c9d9e69f1434aea2b2691934a45600a 100644 (file)
@@ -3,7 +3,7 @@ shadowing a global core function with a local version
 --FILE--
 <?php
 
-require 'includes/foo_strlen.php';
+require 'includes/foo_strlen.inc';
 
 use function foo\strlen;
 
index 791bcdf4d50d650f3c4dc8591a7208a442eea9d5..7c222d3afa4a7e8493e879f222ca92684452f9cf 100644 (file)
@@ -4,8 +4,8 @@ shadowing a global function with a local version
 <?php
 
 namespace {
-    require 'includes/global_bar.php';
-    require 'includes/foo_bar.php';
+    require 'includes/global_bar.inc';
+    require 'includes/foo_bar.inc';
 }
 
 namespace {