xref: /PHP-5.6/ext/reflection/tests/bug38942.phpt (revision 610c7fbe)
1--TEST--
2Bug #38942 (Double old-style-ctor inheritance)
3--FILE--
4<?php
5class foo {
6    public function foo() {}
7}
8
9class bar extends foo {
10}
11ReflectionClass::export("bar");
12?>
13--EXPECTF--
14Class [ <user> class bar extends foo ] {
15  @@ %sbug38942.php 6-7
16
17  - Constants [0] {
18  }
19
20  - Static properties [0] {
21  }
22
23  - Static methods [0] {
24  }
25
26  - Properties [0] {
27  }
28
29  - Methods [1] {
30    Method [ <user, inherits foo, ctor> public method foo ] {
31      @@ %sbug38942.php 3 - 3
32    }
33  }
34}
35