| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 3 | class InjiTest extends \PHPUnit\Framework\TestCase { |
||
| 4 | |||
| 5 | /** |
||
| 6 | * @covers Inji::listen |
||
| 7 | * @covers Inji::event |
||
| 8 | * @covers Inji::unlisten |
||
| 9 | */ |
||
| 10 | public function testNotSavingEvent() { |
||
| 11 | \Inji::$inst->listen('testEvent', 'testCallback', function() { |
||
|
|
|||
| 12 | return true; |
||
| 13 | }); |
||
| 14 | $this->assertEquals(true, Inji::$inst->event('testEvent')); |
||
| 15 | \Inji::$inst->unlisten('testEvent', 'testCallback'); |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @covers Inji::listen |
||
| 20 | * @covers Inji::event |
||
| 21 | * @covers Inji::unlisten |
||
| 22 | */ |
||
| 23 | public function testSavingEvent() { |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @covers Inji::listen |
||
| 31 | * @covers Inji::event |
||
| 32 | */ |
||
| 33 | public function testArrayWithCallback() { |
||
| 47 |