summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/tests/bug73987.phpt2
-rw-r--r--Zend/tests/bug73987_1.phpt2
-rw-r--r--Zend/tests/bug73987_2.phpt20
-rw-r--r--Zend/tests/bug73987_3.phpt20
4 files changed, 2 insertions, 42 deletions
diff --git a/Zend/tests/bug73987.phpt b/Zend/tests/bug73987.phpt
index 610b594a64..551565650c 100644
--- a/Zend/tests/bug73987.phpt
+++ b/Zend/tests/bug73987.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #73987 (Method compatibility check looks to original definition and not parent - nullability interface)
+Bug #73987 (Method compatibility check looks to original definition and not parent)
--FILE--
<?php
diff --git a/Zend/tests/bug73987_1.phpt b/Zend/tests/bug73987_1.phpt
index 010987ea5f..6a0a157f29 100644
--- a/Zend/tests/bug73987_1.phpt
+++ b/Zend/tests/bug73987_1.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #73987 (Method compatibility check looks to original definition and not parent - return types interface)
+Bug #73987 (Method compatibility check looks to original definition and not parent)
--FILE--
<?php
diff --git a/Zend/tests/bug73987_2.phpt b/Zend/tests/bug73987_2.phpt
deleted file mode 100644
index a70f1455e8..0000000000
--- a/Zend/tests/bug73987_2.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Bug #73987 (Method compatibility check looks to original definition and not parent - nullabilty abstract)
---FILE--
-<?php
-
-abstract class A {
- abstract function example($a, $b, $c);
-}
-
-class B extends A {
- function example($a, $b = null, $c = null) { }
-}
-
-class C extends B {
- function example($a, $b, $c = null) { }
-}
-
-?>
---EXPECTF--
-Fatal error: Declaration of C::example($a, $b, $c = NULL) must be compatible with B::example($a, $b = NULL, $c = NULL) in %s
diff --git a/Zend/tests/bug73987_3.phpt b/Zend/tests/bug73987_3.phpt
deleted file mode 100644
index 89e4686ed6..0000000000
--- a/Zend/tests/bug73987_3.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Bug #73987 (Method compatibility check looks to original definition and not parent - return types abstract)
---FILE--
-<?php
-
-abstract class A {
- abstract function example();
-}
-
-class B extends A {
- function example(): int { }
-}
-
-class C extends B {
- function example(): string { }
-}
-
-?>
---EXPECTF--
-Fatal error: Declaration of C::example(): string must be compatible with B::example(): int in %s