Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function testGetNbResults() |
||
51 | { |
||
52 | $this->query |
||
53 | ->expects($this->once()) |
||
54 | ->method('offset') |
||
55 | ->with(0); |
||
56 | $this->query |
||
57 | ->expects($this->once()) |
||
58 | ->method('count') |
||
59 | ->will($this->returnValue(100)); |
||
60 | |||
61 | $this->assertSame(100, $this->adapter->getNbResults()); |
||
62 | } |
||
63 | |||
86 |
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: