]> granicus.if.org Git - php/commitdiff
- Fix interface tests. Interfaces should not use access modifiers
authorAndi Gutmans <andi@php.net>
Wed, 20 Oct 2004 22:13:44 +0000 (22:13 +0000)
committerAndi Gutmans <andi@php.net>
Wed, 20 Oct 2004 22:13:44 +0000 (22:13 +0000)
tests/classes/interface_doubled.phpt
tests/classes/interface_implemented.phpt
tests/classes/interface_instantiate.phpt

index cf3b0997404565ad08032e15a79feb1df1b43e10..e1dd31fd4d8dec741412ae4e7d8435d882edc57b 100644 (file)
@@ -6,23 +6,23 @@ ZE2 An interface extends base interfaces
 <?php
 
 interface if_a {
-       abstract function f_a();
+       function f_a();
 }
        
 interface if_b {
-       abstract function f_b();
+       function f_b();
 }
 
 interface if_c extends if_a, if_b {
-       abstract function f_c();
+       function f_c();
 }
 
 interface if_d extends if_a, if_b {
-       abstract function f_d();
+       function f_d();
 }
 
 interface if_e {
-       abstract function f_d();
+       function f_d();
 }
 
 interface if_f extends /*if_e,*/ if_a, if_b, if_c, if_d /*, if_e*/ {
index 0f5e5cbe7b035d182554c5038dd8f9fea5b54557..e33a4da002d017eab2b42280c21422f7563e2cfd 100644 (file)
@@ -6,11 +6,11 @@ ZE2 An interface is inherited
 <?php
 
 interface if_a {
-       abstract function f_a();
+       function f_a();
 }
        
 interface if_b extends if_a {
-       abstract function f_b();
+       function f_b();
 }
 
 class base {
index d13bb9a6a09470f04ab02d7dd23625dbcd5fdef9..61c4e6b95ba0a43351022b7db0d82f3676f4e319 100644 (file)
@@ -6,7 +6,7 @@ ZE2 An interface cannot be instantiated
 <?php
 
 interface if_a {
-       abstract function f_a();
+       function f_a();
 }
        
 $t = new if_a();