Skip to content

Commit 14e5475

Browse files
author
Andi Gutmans
committed
- Fix interface tests. Interfaces should not use access modifiers
1 parent abd4284 commit 14e5475

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/classes/interface_doubled.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ ZE2 An interface extends base interfaces
66
<?php
77

88
interface if_a {
9-
abstract function f_a();
9+
function f_a();
1010
}
1111

1212
interface if_b {
13-
abstract function f_b();
13+
function f_b();
1414
}
1515

1616
interface if_c extends if_a, if_b {
17-
abstract function f_c();
17+
function f_c();
1818
}
1919

2020
interface if_d extends if_a, if_b {
21-
abstract function f_d();
21+
function f_d();
2222
}
2323

2424
interface if_e {
25-
abstract function f_d();
25+
function f_d();
2626
}
2727

2828
interface if_f extends /*if_e,*/ if_a, if_b, if_c, if_d /*, if_e*/ {

tests/classes/interface_implemented.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ ZE2 An interface is inherited
66
<?php
77

88
interface if_a {
9-
abstract function f_a();
9+
function f_a();
1010
}
1111

1212
interface if_b extends if_a {
13-
abstract function f_b();
13+
function f_b();
1414
}
1515

1616
class base {

tests/classes/interface_instantiate.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ZE2 An interface cannot be instantiated
66
<?php
77

88
interface if_a {
9-
abstract function f_a();
9+
function f_a();
1010
}
1111

1212
$t = new if_a();

0 commit comments

Comments
 (0)