1 | <?php |
||
9 | class CSessionTest extends \PHPUnit_Framework_TestCase |
||
10 | { |
||
11 | /** |
||
12 | * Test |
||
13 | * |
||
14 | * @return void |
||
15 | * |
||
16 | */ |
||
17 | public function testLoadConfig() |
||
22 | |||
23 | |||
24 | |||
25 | /** |
||
26 | * Test |
||
27 | * |
||
28 | * @return void |
||
29 | * |
||
30 | */ |
||
31 | public function testSetName() |
||
40 | |||
41 | |||
42 | |||
43 | /** |
||
44 | * Test |
||
45 | * |
||
46 | * @return void |
||
47 | * |
||
48 | */ |
||
49 | public function testGetSetHas() |
||
66 | } |
||
67 |
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: