1 | <?php |
||
9 | class CDispatcherBasicTest extends \PHPUnit_Framework_TestCase |
||
10 | { |
||
11 | /** |
||
12 | * Test |
||
13 | * |
||
14 | * @return void |
||
15 | * |
||
16 | * @expectedException Exception |
||
17 | * |
||
18 | */ |
||
19 | public function testDispatchWrongRoute1() |
||
24 | |||
25 | |||
26 | |||
27 | /** |
||
28 | * Test |
||
29 | * |
||
30 | * @return void |
||
31 | * |
||
32 | * @expectedException Exception |
||
33 | * |
||
34 | */ |
||
35 | public function testDispatchWrongRoute2() |
||
45 | } |
||
46 |
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: