xref: /PHP-5.6/Zend/tests/bug70957.phpt (revision ab17840d)
1--TEST--
2Bug #70957 (self::class can not be resolved with reflection for abstract class)
3--FILE--
4<?php
5
6abstract class Foo
7{
8    function bar($a = self::class) {}
9}
10
11trait T {
12    public function bar() {
13    }
14}
15
16class Bar extends Foo
17{
18    use T;
19}
20?>
21--EXPECTF--
22Strict Standards: Declaration of T::bar() should be compatible with Foo::bar($a = 'Foo') in %sbug70957.php on line %d
23