diff --git a/tests/aot/class/base-class-method.phpt b/tests/aot/class/base-class-method.phpt new file mode 100644 index 00000000..539fe280 --- /dev/null +++ b/tests/aot/class/base-class-method.phpt @@ -0,0 +1,34 @@ +--TEST-- +class extends +--FILE-- +foo(); + $o->toObject(ChildObject::class)->bar(); +} + +function main() +{ + $o1 = new ChildObject; + foo_test($o1); +} +?> +--EXPECT-- +string(15) "BaseObject::foo" +string(16) "ChildObject::bar" \ No newline at end of file