Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
49 | public function testGetSetHas() |
||
50 | { |
||
51 | $session = new \Anax\Session\CSession(); |
||
52 | |||
53 | $ret = $session->has('key'); |
||
54 | $this->assertFalse($ret, "Session should not have this entry."); |
||
55 | |||
56 | $ret = $session->get('key'); |
||
57 | $this->assertNull($ret, "Session should return null for this entry."); |
||
58 | |||
59 | $ret = $session->set('key', 'value'); |
||
60 | $ret = $session->has('key'); |
||
61 | $this->assertTrue($ret, "Session should have this entry."); |
||
62 | |||
63 | $ret = $session->get('key'); |
||
64 | $this->assertEquals($ret, 'value', "Session should have a value for this entry."); |
||
65 | } |
||
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: