php-src/Zend/tests/bug43323.phpt
2015-03-31 17:55:27 +02:00

15 lines
486 B
PHP

--TEST--
Bug #43323 (Wrong count abstract methods)
--FILE--
<?php
abstract class bar {
abstract public function bar();
}
class foo extends bar {
}
--EXPECTF--
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bar has a deprecated constructor in %s on line %d
Fatal error: Class foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (bar::bar) in %sbug43323.php on line 7