Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns a parent directory's path
<?php dirname(string $path, int $levels = 1): string
<?php             foreach (get_declared_classes() as $class) {

                if ('C' === $class[0] && str_starts_with($class, 'ComposerAutoloaderInit')) {

                    $r = new \ReflectionClass($class);

                    $v = \dirname($r->getFileName(), 2);

                    if (is_file($v.'/composer/installed.json')) {

                        self::$vendorRoots[] = $v.\DIRECTORY_SEPARATOR;

                    }
<?php         }

        $inVendor = false;



        if (isset(self::$composerRoots[$dir = \dirname($file)])) {

            return self::$composerRoots[$dir];

        }
<?php                 break;

            }

            if ($parent === \dirname($parent)) {

                return self::$composerRoots[$dir] = false;

            }
<?php                 return self::$composerRoots[$dir] = false;

            }



            $parent = \dirname($parent);

        }



        return self::$composerRoots[$dir] = $parent.\DIRECTORY_SEPARATOR;
<?php     public function testShouldReturnTraceForConcreteTwigWithError()

    {

        require_once \dirname(__DIR__).'/Fixtures/Twig.php';



        $innerExc = (new \__TwigTemplate_VarDumperFixture_u75a09(null, __FILE__))->provideError();

        $nestingWrapper = new \stdClass();
<?php     public function testFrameWithTwig()

    {

        require_once \dirname(__DIR__).'/Fixtures/Twig.php';



        $f = [

            new FrameStub([
<?php         $f = [

            new FrameStub([

                'file' => \dirname(__DIR__).'/Fixtures/Twig.php',

                'line' => 33,

                'class' => '__TwigTemplate_VarDumperFixture_u75a09',

            ]),
<?php                 'class' => '__TwigTemplate_VarDumperFixture_u75a09',

            ]),

            new FrameStub([

                'file' => \dirname(__DIR__).'/Fixtures/Twig.php',

                'line' => 34,

                'class' => '__TwigTemplate_VarDumperFixture_u75a09',

                'object' => new \__TwigTemplate_VarDumperFixture_u75a09(null, __FILE__),