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

ReadPhpConfigEventTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_absolute_path() 0 5 1
A test_to_string() 0 5 1
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