get_parent_class

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Retrieves the parent class name for object or class
<?php get_parent_class(object|string $object_or_class = ?): string|false
<?php });



it('uses correct parent class', function () {

    expect(get_parent_class($this))->toEqual(InheritanceTest::class);

    expect($this->foo())->toEqual('bar');

})->depends('it is a test');