Update website

This commit is contained in:
Guilhem Lavaux 2024-11-19 08:02:04 +01:00
parent 4413528994
commit 1d90fbf296
6865 changed files with 1091082 additions and 0 deletions

View 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';
}
}

View file

@ -0,0 +1,4 @@
File
====
a file

View file

@ -0,0 +1 @@
This file is included

View file

@ -0,0 +1,9 @@
Test include
============
.. include:: include.rst.inc
.. toctree::
:glob:
*