Passed
Branch master (e8fd46)
by Alexey
02:50
created

EventSpec   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1
1
<?php
2
3
namespace spec\Venta\Event;
4
5
use PhpSpec\ObjectBehavior;
6
use stub\Venta\Event\StubEvent;
7
use Venta\Event\AbstractEvent;
8
9
class EventSpec extends ObjectBehavior
10
{
11
    function let()
12
    {
13
        $this->beAnInstanceOf(StubEvent::class);
14
    }
15
16
    function it_is_initializable()
17
    {
18
        $this->shouldHaveType(AbstractEvent::class);
19
    }
20
21
    function it_propagation_can_be_stopped()
22
    {
23
        $this->isPropagationStopped()->shouldBe(false);
24
        $this->stopPropagation();
25
        $this->isPropagationStopped()->shouldBe(true);
26
    }
27
}
28