Completed
Push — master ( e714f3...157665 )
by Andrey
02:39
created

EventTestSuite   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 3
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 8 1
A tearDown() 0 6 1
1
<?php
2
3
namespace Tests;
4
5
use PHPUnit\Framework\TestCase;
6
use Event\Event;
7
use Event\EventManager;
8
9
class EventTestSuite extends TestCase
10
{
11
    protected $event;
12
    protected $eventManager;
13
    protected $eventListener;
14
15
    protected function setUp()
16
    {
17
        $this->eventManager = new EventManager;
18
        $this->event = new Event('some.event', [], 'someTarget', true);
19
        $this->eventListener = function() {
20
            return true;
21
        };
22
    }
23
    
24
    protected function tearDown()
25
    {
26
        unset($this->event);
27
        unset($this->eventManager);
28
        unset($this->eventListener);
29
    }
30
}