Completed
Push — master ( fee60c...6071cd )
by Mike
03:05
created

test_it_can_be_created_with_a_definition_list()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace phpDocumentor\Guides\Nodes;
6
7
/**
8
 * This file is part of phpDocumentor.
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 *
13
 * @link https://phpdoc.org
14
 */
15
16
use phpDocumentor\Guides\RestructuredText\Parser\DefinitionList;
17
use PHPUnit\Framework\TestCase;
18
19
final class DefinitionListNodeTest extends TestCase
20
{
21
    public function test_it_can_be_created_with_a_definition_list() : void
22
    {
23
        $definitionList = new DefinitionList([]);
24
25
        $node = new DefinitionListNode($definitionList);
26
27
        self::assertSame($definitionList, $node->getDefinitionList());
28
    }
29
}
30