1--TEST--
2ReflectionMethod and RECV_INIT (bug #70957 and #70958)
3--FILE--
4<?php
5Abstract class F {
6	private function bar($a = self::class) {}
7}
8
9Trait T
10{
11	private function bar($a = self::class) {}
12}
13
14
15class B {
16	use T;
17}
18
19echo new \ReflectionMethod('F', 'bar');
20echo new \ReflectionMethod('T', 'bar');
21echo new \ReflectionMethod('B', 'bar');
22?>
23--EXPECTF--
24Method [ <user> private method bar ] {
25  @@ %s
26
27  - Parameters [1] {
28    Parameter #0 [ <optional> $a = 'F' ]
29  }
30}
31Method [ <user> private method bar ] {
32  @@ %s
33
34  - Parameters [1] {
35    Parameter #0 [ <optional> $a = 'T' ]
36  }
37}
38Method [ <user> private method bar ] {
39  @@ %s
40
41  - Parameters [1] {
42    Parameter #0 [ <optional> $a = 'B' ]
43  }
44}
45