Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
34
vendor/doctrine/rst-parser/tests/BuilderCustomScannerFinder/BuilderCustomScannerFinderTest.php
vendored
Normal file
34
vendor/doctrine/rst-parser/tests/BuilderCustomScannerFinder/BuilderCustomScannerFinderTest.php
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\Tests\RST\BuilderCustomScannerFinder;
|
||||
|
||||
use Doctrine\RST\Builder;
|
||||
use Doctrine\Tests\RST\BaseBuilderTest;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
|
||||
/**
|
||||
* Tests a custom Finder for Scanner
|
||||
*/
|
||||
class BuilderCustomScannerFinderTest extends BaseBuilderTest
|
||||
{
|
||||
public function testCustomScannerFinder(): void
|
||||
{
|
||||
self::assertFileExists($this->targetFile('path1/file1.html'));
|
||||
self::assertFileNotExists($this->targetFile('path2/file2.html'));
|
||||
}
|
||||
|
||||
protected function getFixturesDirectory(): string
|
||||
{
|
||||
return 'BuilderCustomScannerFinder';
|
||||
}
|
||||
|
||||
protected function configureBuilder(Builder $builder): void
|
||||
{
|
||||
$finder = new Finder();
|
||||
$finder->exclude('path2');
|
||||
|
||||
$builder->setScannerFinder($finder);
|
||||
}
|
||||
}
|
4
vendor/doctrine/rst-parser/tests/BuilderCustomScannerFinder/input/index.rst
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/BuilderCustomScannerFinder/input/index.rst
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
Index
|
||||
=====
|
||||
|
||||
a file
|
4
vendor/doctrine/rst-parser/tests/BuilderCustomScannerFinder/input/path1/file1.rst
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/BuilderCustomScannerFinder/input/path1/file1.rst
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
File1
|
||||
=====
|
||||
|
||||
a file
|
4
vendor/doctrine/rst-parser/tests/BuilderCustomScannerFinder/input/path2/file2.rst
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/BuilderCustomScannerFinder/input/path2/file2.rst
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
Path 2 File
|
||||
===========
|
||||
|
||||
a file
|
Loading…
Add table
Add a link
Reference in a new issue