Passed
Push — fix/solve-windows-ci ( 003700...709697 )
by Chema
07:40 queued 03:14
created

ReadPhpConfigEventTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 9
c 2
b 0
f 0
dl 0
loc 22
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
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
    private ReadPhpConfigEvent $event;
13
14
    protected function setUp(): void
15
    {
16
        $this->event = new ReadPhpConfigEvent('absolute/path');
17
    }
18
19
    public function test_absolute_path(): void
20
    {
21
        self::assertSame(
22
            'absolute/path',
23
            $this->event->absolutePath(),
24
        );
25
    }
26
27
    public function test_to_string(): void
28
    {
29
        self::assertStringContainsString(
30
            '{absolutePath:"absolute/path"}',
31
            $this->event->toString(),
32
        );
33
    }
34
}
35