Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function testEventFire() |
||
23 | { |
||
24 | $this->get(Event::class)->fire('person.authorized', ['name' => 'nekufa']); |
||
25 | $this->assertCount(1, $this->firedEvents); |
||
26 | $this->assertSame($this->firedEvents[0]->event, 'test.person.authorized'); |
||
27 | $this->assertSame(get_object_vars($this->firedEvents[0]->context), ['name' => 'nekufa']); |
||
28 | } |
||
29 | |||
39 |