summaryrefslogtreecommitdiff
path: root/tests/classes/abstract_redeclare.phpt
blob: 843570ba2e18db334e3d78a8bd265ff2655c82c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
ZE2 A method cannot be redeclared abstract
--FILE--
<?php

class pass {
    function show() {
        echo "Call to function show()\n";
    }
}

class fail extends pass {
    abstract function show();
}

echo "Done\n"; // Shouldn't be displayed
?>
--EXPECTF--
Fatal error: Class fail contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (fail::show) in %sabstract_redeclare.php on line %d