1--TEST--
2Testing get_parent_class()
3--FILE--
4<?php
5
6interface ITest {
7    function foo();
8}
9
10abstract class bar implements ITest {
11    public function foo() {
12        var_dump(get_parent_class());
13    }
14}
15
16class foo extends bar {
17    public function __construct() {
18        var_dump(get_parent_class());
19    }
20}
21
22$a = new foo;
23$a->foo();
24
25?>
26--EXPECTF--
27Deprecated: Calling get_parent_class() without arguments is deprecated in %s on line %d
28string(3) "bar"
29
30Deprecated: Calling get_parent_class() without arguments is deprecated in %s on line %d
31bool(false)
32