1--TEST--
2ReflectionClass::getConstructor()
3--FILE--
4<?php
5class NewCtor {
6    function __construct() {}
7}
8
9class ExtendsNewCtor extends NewCtor {
10}
11
12$classes = array('NewCtor', 'ExtendsNewCtor');
13foreach ($classes as $class) {
14    $rc = new ReflectionClass($class);
15    $rm = $rc->getConstructor();
16    if ($rm != null) {
17        echo "Constructor of $class: " . $rm->getName() . "\n";
18    }  else {
19        echo "No constructor for $class\n";
20    }
21
22}
23
24?>
25--EXPECT--
26Constructor of NewCtor: __construct
27Constructor of ExtendsNewCtor: __construct
28