Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
41
vendor/doctrine/rst-parser/tests/HTML/IndentHTMLTest.php
vendored
Normal file
41
vendor/doctrine/rst-parser/tests/HTML/IndentHTMLTest.php
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\Tests\RST\HTML;
|
||||
|
||||
use Doctrine\RST\Configuration;
|
||||
use Doctrine\RST\Kernel;
|
||||
use Doctrine\RST\Parser;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class IndentHTMLTest extends TestCase
|
||||
{
|
||||
public function testIndentHTML(): void
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$configuration->setIndentHTML(true);
|
||||
|
||||
$kernel = new Kernel($configuration);
|
||||
|
||||
$parser = new Parser($kernel);
|
||||
|
||||
$document = $parser->parse('Test paragraph.');
|
||||
|
||||
$rendered = $document->renderDocument();
|
||||
|
||||
$expected = <<<'HTML'
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<p>Test paragraph.</p>
|
||||
</body>
|
||||
</html>
|
||||
HTML;
|
||||
|
||||
self::assertSame($expected, $rendered);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue