summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/abstract_method_6.phpt
blob: a8a3fc4138689c396d58e5f6d774cfa10330e86d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Abstract private trait method not implemented
--FILE--
<?php

trait T {
    abstract private function method(int $a, string $b);
}

abstract class C {
    use T;
}

class D extends C {
    private function method(int $a, string $b) {}
}

?>
--EXPECTF--
Fatal error: Class C must implement 1 abstract private method (C::method) in %s on line %d