Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
53
vendor/doctrine/rst-parser/tests/MetasTest.php
vendored
Normal file
53
vendor/doctrine/rst-parser/tests/MetasTest.php
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\Tests\RST;
|
||||
|
||||
use Doctrine\RST\Meta\MetaEntry;
|
||||
use Doctrine\RST\Meta\Metas;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class MetasTest extends TestCase
|
||||
{
|
||||
public function testFindLinkMetaEntry(): void
|
||||
{
|
||||
$entry1 = new MetaEntry(
|
||||
'test.rst',
|
||||
'test.html',
|
||||
'Test',
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
[
|
||||
'link1' => '/link1',
|
||||
'link2' => '/link2',
|
||||
],
|
||||
0
|
||||
);
|
||||
|
||||
$entry2 = new MetaEntry(
|
||||
'test.rst',
|
||||
'test.html',
|
||||
'Test',
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
[
|
||||
'link3' => '/link3',
|
||||
'link4' => '/link4',
|
||||
],
|
||||
0
|
||||
);
|
||||
|
||||
$metas = new Metas([
|
||||
$entry1,
|
||||
$entry2,
|
||||
]);
|
||||
|
||||
self::assertSame($entry1, $metas->findLinkMetaEntry('link1'));
|
||||
self::assertSame($entry1, $metas->findLinkMetaEntry('link2'));
|
||||
self::assertSame($entry2, $metas->findLinkMetaEntry('link3'));
|
||||
self::assertSame($entry2, $metas->findLinkMetaEntry('link4'));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue