| 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() { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @covers Inji::listen |
||
| 20 | * @covers Inji::event |
||
| 21 | * @covers Inji::unlisten |
||
| 22 | */ |
||
| 23 | public function testSavingEvent() { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @covers Inji::listen |
||
| 31 | * @covers Inji::event |
||
| 32 | */ |
||
| 33 | public function testArrayWithCallback() { |
||
| 38 | } |
||
| 39 | |||
| 47 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: