summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2017-02-01 18:35:03 +0000
committerJoe Watkins <krakjoe@php.net>2017-02-01 18:35:03 +0000
commit76b2f2ff5d75a46cc07fbc852aad9e5946aabe32 (patch)
treefb3fadd2e7459ccdf6a6ac238e094c024418ea26
parentd699a81277219dce24e1022539e8b3db3f7e62c7 (diff)
downloadphp-git-76b2f2ff5d75a46cc07fbc852aad9e5946aabe32.tar.gz
Revert "Added tests demonstrating the same effect with abstracts"
This reverts commit c11b2b809d349399c8f4b54c6bf24078dece455e.
-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