protected static function callMockOrParent(string $method, array $arguments)
    {
        $classToCall = 'parent';
        $class = get_called_class();
        $mock = static::$mock[$class] ?? null;

        if ($mock && $mock->mockery_getExpectationsFor($method)) {
            $classToCall = $mock;
        }

        return call_user_func_array([$classToCall, $method], $arguments);
    }