summaryrefslogtreecommitdiff
path: root/tests/classes/interface_and_extends.phpt
blob: 080ba24da9105cebcf5382994626cce6020f44ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
ZE2 a class cannot extend an interface
--FILE--
<?php

interface Test
{
    function show();
}

class Tester extends Test
{
    function show() {
        echo __METHOD__ . "\n";
    }
}

$o = new Tester;
$o->show();

?>
===DONE===
--EXPECTF--
Fatal error: Class Tester cannot extend from interface Test in %sinterface_and_extends.php on line %d