[php-src] master: Zend: reorganise some type declarations tests
| From: | Gina Peter Banyard | Date: | Sat, 19 Sep 2026 15:01:59 +0000 |
| Subject: | [php-src] master: Zend: reorganise some type declarations tests | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141277@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Date: 2026-09-19T15:58:21+01:00
Commit: https://github.com/php/php-src/commit/6d910200db4b1826a84b442191ba616fbfb359b2
Raw diff: https://github.com/php/php-src/commit/6d910200db4b1826a84b442191ba616fbfb359b2.diff
Zend: reorganise some type declarations tests
Changed paths:
A Zend/tests/type_declarations/iterable/bug76198.phpt
A Zend/tests/type_declarations/relative_types/bug43332_1.phpt
A Zend/tests/type_declarations/relative_types/bug43332_2.phpt
A Zend/tests/type_declarations/relative_types/bug60573.phpt
A Zend/tests/type_declarations/relative_types/bug60573_2.phpt
A Zend/tests/type_declarations/relative_types/parent_is_not_proto.phpt
A Zend/tests/type_declarations/relative_types/self_on_closure_in_method.phpt
A Zend/tests/type_declarations/relative_types/static/static_type_in_final_class.phpt
A Zend/tests/type_declarations/relative_types/static/static_type_outside_class.phpt
A Zend/tests/type_declarations/relative_types/static/static_type_param.phpt
A Zend/tests/type_declarations/relative_types/static/static_type_property.phpt
A Zend/tests/type_declarations/relative_types/static/static_type_return.phpt
A Zend/tests/type_declarations/relative_types/static/static_type_trait.phpt
D Zend/tests/type_declarations/parent_is_not_proto.phpt
D Zend/tests/type_declarations/self_on_closure_in_method.phpt
D Zend/tests/type_declarations/static_type_in_final_class.phpt
D Zend/tests/type_declarations/static_type_outside_class.phpt
D Zend/tests/type_declarations/static_type_param.phpt
D Zend/tests/type_declarations/static_type_property.phpt
D Zend/tests/type_declarations/static_type_return.phpt
D Zend/tests/type_declarations/static_type_trait.phpt
D Zend/tests/typehints/bug43332_1.phpt
D Zend/tests/typehints/bug43332_2.phpt
D Zend/tests/typehints/bug60573.phpt
D Zend/tests/typehints/bug60573_2.phpt
D Zend/tests/typehints/bug76198.phpt
Diff:
diff --git a/Zend/tests/typehints/bug76198.phpt
b/Zend/tests/type_declarations/iterable/bug76198.phpt
similarity index 100%
rename from Zend/tests/typehints/bug76198.phpt
rename to Zend/tests/type_declarations/iterable/bug76198.phpt
diff --git a/Zend/tests/typehints/bug43332_1.phpt
b/Zend/tests/type_declarations/relative_types/bug43332_1.phpt
similarity index 86%
rename from Zend/tests/typehints/bug43332_1.phpt
rename to Zend/tests/type_declarations/relative_types/bug43332_1.phpt
index 35d817c985ee..7639633c3e95 100644
--- a/Zend/tests/typehints/bug43332_1.phpt
+++ b/Zend/tests/type_declarations/relative_types/bug43332_1.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #43332.1 (self and parent as type hint in namespace)
+Bug #43332.1 (self and parent as type declaration in namespace)
--FILE--
<?php
namespace foobar;
diff --git a/Zend/tests/typehints/bug43332_2.phpt
b/Zend/tests/type_declarations/relative_types/bug43332_2.phpt
similarity index 80%
rename from Zend/tests/typehints/bug43332_2.phpt
rename to Zend/tests/type_declarations/relative_types/bug43332_2.phpt
index 604479e60660..2cc3c58197b9 100644
--- a/Zend/tests/typehints/bug43332_2.phpt
+++ b/Zend/tests/type_declarations/relative_types/bug43332_2.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #43332.2 (self and parent as type hint in namespace)
+Bug #43332.2 (self and parent as type declaration in namespace)
--FILE--
<?php
namespace foobar;
diff --git a/Zend/tests/typehints/bug60573.phpt
b/Zend/tests/type_declarations/relative_types/bug60573.phpt
similarity index 90%
rename from Zend/tests/typehints/bug60573.phpt
rename to Zend/tests/type_declarations/relative_types/bug60573.phpt
index 50650f54197f..4e6079ed1aee 100644
--- a/Zend/tests/typehints/bug60573.phpt
+++ b/Zend/tests/type_declarations/relative_types/bug60573.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #60573 (type hinting with "self" keyword causes weird errors)
+Bug #60573 (type declaration with "self" keyword causes weird errors)
--FILE--
<?php
class Foo1 {
diff --git a/Zend/tests/typehints/bug60573_2.phpt
b/Zend/tests/type_declarations/relative_types/bug60573_2.phpt
similarity index 90%
rename from Zend/tests/typehints/bug60573_2.phpt
rename to Zend/tests/type_declarations/relative_types/bug60573_2.phpt
index 221745316a83..cc0171fd7e07 100644
--- a/Zend/tests/typehints/bug60573_2.phpt
+++ b/Zend/tests/type_declarations/relative_types/bug60573_2.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #60573 (type hinting with "self" keyword causes weird errors) -- variation 2
+Bug #60573 (type declaration with "self" keyword causes weird errors) -- variation 2
--FILE--
<?php
class Foo1 {
diff --git a/Zend/tests/type_declarations/parent_is_not_proto.phpt
b/Zend/tests/type_declarations/relative_types/parent_is_not_proto.phpt
similarity index 100%
rename from Zend/tests/type_declarations/parent_is_not_proto.phpt
rename to Zend/tests/type_declarations/relative_types/parent_is_not_proto.phpt
diff --git a/Zend/tests/type_declarations/self_on_closure_in_method.phpt
b/Zend/tests/type_declarations/relative_types/self_on_closure_in_method.phpt
similarity index 100%
rename from Zend/tests/type_declarations/self_on_closure_in_method.phpt
rename to Zend/tests/type_declarations/relative_types/self_on_closure_in_method.phpt
diff --git a/Zend/tests/type_declarations/static_type_in_final_class.phpt
b/Zend/tests/type_declarations/relative_types/static/static_type_in_final_class.phpt
similarity index 100%
rename from Zend/tests/type_declarations/static_type_in_final_class.phpt
rename to Zend/tests/type_declarations/relative_types/static/static_type_in_final_class.phpt
diff --git a/Zend/tests/type_declarations/static_type_outside_class.phpt
b/Zend/tests/type_declarations/relative_types/static/static_type_outside_class.phpt
similarity index 100%
rename from Zend/tests/type_declarations/static_type_outside_class.phpt
rename to Zend/tests/type_declarations/relative_types/static/static_type_outside_class.phpt
diff --git a/Zend/tests/type_declarations/static_type_param.phpt
b/Zend/tests/type_declarations/relative_types/static/static_type_param.phpt
similarity index 100%
rename from Zend/tests/type_declarations/static_type_param.phpt
rename to Zend/tests/type_declarations/relative_types/static/static_type_param.phpt
diff --git a/Zend/tests/type_declarations/static_type_property.phpt
b/Zend/tests/type_declarations/relative_types/static/static_type_property.phpt
similarity index 100%
rename from Zend/tests/type_declarations/static_type_property.phpt
rename to Zend/tests/type_declarations/relative_types/static/static_type_property.phpt
diff --git a/Zend/tests/type_declarations/static_type_return.phpt
b/Zend/tests/type_declarations/relative_types/static/static_type_return.phpt
similarity index 100%
rename from Zend/tests/type_declarations/static_type_return.phpt
rename to Zend/tests/type_declarations/relative_types/static/static_type_return.phpt
diff --git a/Zend/tests/type_declarations/static_type_trait.phpt
b/Zend/tests/type_declarations/relative_types/static/static_type_trait.phpt
similarity index 100%
rename from Zend/tests/type_declarations/static_type_trait.phpt
rename to Zend/tests/type_declarations/relative_types/static/static_type_trait.phpt