Files
bestpc/package/vendor/liquid/liquid/tests/Liquid/ParsingQuirksTest.php
2025-05-28 15:30:26 +07:00

28 lines
559 B
PHP

<?php
/*
* This file is part of the Liquid package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Liquid
*/
namespace Liquid;
class ParsingQuirksTest extends TestCase
{
public function testErrorWithCss()
{
$text = " div { font-weight: bold; } ";
$template = new Template();
$template->parse($text);
$nodelist = $template->getRoot()->getNodelist();
$this->assertEquals($text, $template->render());
$this->assertIsString($nodelist[0]);
}
}