Completed
Push — master ( bff253...2705ab )
by Dmitry
05:49 queued 01:23
created

EventTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test() 0 8 1
1
<?php
2
3
namespace Test;
4
5
use Basis\Converter;
6
use Basis\Event;
7
8
class EventTest extends TestSuite
9
{
10
    public function test()
11
    {
12
        $event = $this->app->get(Event::class);
13
        $subscription = $event->getSubscription();
14
15
        $this->assertArrayHasKey('person.created', $subscription);
16
        $this->assertSame($subscription['person.created'], ['CreateLogin']);
17
    }
18
}
19