• File: TextTest.php
  • Full Path: /home/bravrvjk/hpgt.org/wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/tests/Profiler/Dumper/TextTest.php
  • Date Modified: 03/05/2025 5:09 PM
  • File size: 694 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Twig\Tests\Profiler\Dumper;

/*
 * This file is part of Twig.
 *
 * (c) Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use Twig\Profiler\Dumper\TextDumper;

class TextTest extends AbstractTest
{
    public function testDump()
    {
        $dumper = new TextDumper();
        $this->assertStringMatchesFormat(<<<EOF
main %d.%dms/%d%
└ index.twig %d.%dms/%d%
  └ embedded.twig::block(body)
  └ embedded.twig
  │ └ included.twig
  └ index.twig::macro(foo)
  └ embedded.twig
    └ included.twig

EOF
            , $dumper->dump($this->getProfile()));
    }
}