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

EventTestSuite::tearDown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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
}