ru_php/Zend/tests/traits/abstract_method_6.phpt

21 lines
345 B
PHP

--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 method (C::method) in %s on line %d