Completed
Push — master ( 6071cd...4cf164 )
by Mike
02:36
created

MainNodeTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_it_can_be_created_with_a_value() 0 7 1
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 PHPUnit\Framework\TestCase;
17
18
final class MainNodeTest extends TestCase
19
{
20
    public function test_it_can_be_created_with_a_value() : void
21
    {
22
        $node = new MainNode('id');
23
24
        self::assertSame('id', $node->getValue());
25
        self::assertSame('id', $node->getValueString());
26
    }
27
}
28