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/BuilderInclude/BuilderIncludeTest.php
vendored
Normal file
41
vendor/doctrine/rst-parser/tests/BuilderInclude/BuilderIncludeTest.php
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\Tests\RST\BuilderInclude;
|
||||
|
||||
use Doctrine\Tests\RST\BaseBuilderTest;
|
||||
|
||||
use function assert;
|
||||
use function file_exists;
|
||||
use function file_get_contents;
|
||||
|
||||
/**
|
||||
* Unit testing build with ".. include::" directive
|
||||
*/
|
||||
class BuilderIncludeTest extends BaseBuilderTest
|
||||
{
|
||||
public function testTocTreeGlob(): void
|
||||
{
|
||||
self::assertTrue(file_exists($this->targetFile('index.html')));
|
||||
$contents = file_get_contents($this->targetFile('index.html'));
|
||||
assert($contents !== false);
|
||||
|
||||
self::assertStringContainsString('This file is included', $contents);
|
||||
|
||||
foreach ($this->builder->getDocuments()->getAll() as $document) {
|
||||
foreach ($document->getEnvironment()->getMetas()->getAll() as $meta) {
|
||||
foreach ($meta->getTocs() as $toc) {
|
||||
foreach ($toc as $tocLine) {
|
||||
self::assertStringNotContainsString('include.inc', $tocLine);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function getFixturesDirectory(): string
|
||||
{
|
||||
return 'BuilderInclude';
|
||||
}
|
||||
}
|
4
vendor/doctrine/rst-parser/tests/BuilderInclude/input/file.rst
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/BuilderInclude/input/file.rst
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
File
|
||||
====
|
||||
|
||||
a file
|
1
vendor/doctrine/rst-parser/tests/BuilderInclude/input/include.rst.inc
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/BuilderInclude/input/include.rst.inc
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
This file is included
|
9
vendor/doctrine/rst-parser/tests/BuilderInclude/input/index.rst
vendored
Normal file
9
vendor/doctrine/rst-parser/tests/BuilderInclude/input/index.rst
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
Test include
|
||||
============
|
||||
|
||||
.. include:: include.rst.inc
|
||||
|
||||
.. toctree::
|
||||
:glob:
|
||||
|
||||
*
|
Loading…
Add table
Add a link
Reference in a new issue