Passed
Push — main ( 799556...1a606f )
by Chema
11:54
created

ReadPhpConfigEventTest::test_absolute_path()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Unit\Framework\Event\ConfigReader;
6
7
use Gacela\Framework\Event\ConfigReader\ReadPhpConfigEvent;
8
use PHPUnit\Framework\TestCase;
9
10
final class ReadPhpConfigEventTest extends TestCase
11
{
12
    public function test_to_string(): void
13
    {
14
        $event = new ReadPhpConfigEvent('absolute/path');
15
16
        self::assertStringContainsString('{absolutePath:"absolute/path"}', $event->toString());
17
    }
18
19
    public function test_absolute_path(): void
20
    {
21
        $event = new ReadPhpConfigEvent('absolute/path');
22
23
        self::assertSame('absolute/path', $event->absolutePath());
24
    }
25
}
26