GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

SymfonyEventTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 2
b 0
f 0
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getNameReturnsCorrectName() 0 5 1
A getEventReturnsCorrectName() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dsantang\DomainEventsDoctrine\Tests\Unit\Dispatcher;
6
7
use Dsantang\DomainEventsDoctrine\Dispatcher\SymfonyEvent;
8
use Dsantang\DomainEventsDoctrine\Tests\RandomDomainEvent;
9
use PHPUnit\Framework\TestCase;
10
11
final class SymfonyEventTest extends TestCase
12
{
13
    /**
14
     * @test
15
     */
16
    public function getNameReturnsCorrectName(): void
17
    {
18
        $event = new SymfonyEvent(new RandomDomainEvent());
19
20
        self::assertSame(RandomDomainEvent::EVENT_NAME, $event->getName());
21
    }
22
23
    /**
24
     * @test
25
     */
26
    public function getEventReturnsCorrectName(): void
27
    {
28
        $internalEvent = new RandomDomainEvent();
29
        $event         = new SymfonyEvent($internalEvent);
30
31
        self::assertSame($internalEvent, $event->getEvent());
32
    }
33
}
34