Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\Tests\RST\BuilderReferenceDoesNotExist;
|
||||
|
||||
use Doctrine\RST\Builder;
|
||||
use Doctrine\RST\Configuration;
|
||||
use Doctrine\RST\Kernel;
|
||||
use Doctrine\Tests\RST\BaseBuilderTest;
|
||||
|
||||
class BuilderReferenceDoesNotExistTest extends BaseBuilderTest
|
||||
{
|
||||
/** @var Configuration */
|
||||
private $configuration;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->configuration = new Configuration();
|
||||
$this->configuration->setUseCachedMetas(false);
|
||||
$this->configuration->abortOnError(false);
|
||||
$this->configuration->silentOnError(true);
|
||||
$this->configuration->setIgnoreInvalidReferences(false);
|
||||
|
||||
$this->builder = new Builder(new Kernel($this->configuration));
|
||||
}
|
||||
|
||||
public function testReferenceDoesNotExist(): void
|
||||
{
|
||||
$this->builder->build($this->sourceFile(), $this->targetFile());
|
||||
|
||||
$contents = $this->getFileContents($this->targetFile('subdir/index.html'));
|
||||
|
||||
self::assertStringContainsString('<p>Test link 1 to</p>', $contents);
|
||||
self::assertStringContainsString('<p>Test link 2 to</p>', $contents);
|
||||
}
|
||||
|
||||
protected function getFixturesDirectory(): string
|
||||
{
|
||||
return 'BuilderReferenceDoesNotExist';
|
||||
}
|
||||
}
|
1
vendor/doctrine/rst-parser/tests/BuilderReferenceDoesNotExist/input/index.rst
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/BuilderReferenceDoesNotExist/input/index.rst
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
Index
|
5
vendor/doctrine/rst-parser/tests/BuilderReferenceDoesNotExist/input/subdir/index.rst
vendored
Normal file
5
vendor/doctrine/rst-parser/tests/BuilderReferenceDoesNotExist/input/subdir/index.rst
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
Example:
|
||||
|
||||
Test :ref:`link 1 to <does-not-exist>`
|
||||
|
||||
Test :ref:`link 2 to <does-not-exist>`
|
Loading…
Add table
Add a link
Reference in a new issue