Completed
Branch master (722970)
by Andrey
03:45 queued 01:41
created

EventTestSuite::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
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
}
31