xref: /PHP-8.0/Zend/tests/objects_028.phpt (revision f8d79582)
1--TEST--
2Testing 'static::' and 'parent::' in calls
3--FILE--
4<?php
5
6class bar {
7    public function __call($a, $b) {
8        print "hello\n";
9    }
10}
11
12class foo extends bar {
13    public function __construct() {
14        static::bar();
15        parent::bar();
16    }
17}
18
19
20new foo;
21
22?>
23--EXPECT--
24hello
25hello
26