| 1 | <?php |
||
| 8 | class MongoAdapterTest extends TestCase |
||
| 9 | { |
||
| 10 | protected $cursor; |
||
| 11 | /** |
||
| 12 | * @var MongoAdapter |
||
| 13 | */ |
||
| 14 | protected $adapter; |
||
| 15 | |||
| 16 | protected function setUp() |
||
| 25 | |||
| 26 | private function isMongoNotAvailable() |
||
| 30 | |||
| 31 | private function createCursorMock() |
||
| 38 | |||
| 39 | public function testGetCursor() |
||
| 43 | |||
| 44 | public function testGetNbResultsShouldReturnTheCursorCount() |
||
| 53 | |||
| 54 | public function testGetSliceShouldPassTheOffsetAndLengthToTheCursor() |
||
| 70 | |||
| 71 | public function testGetSliceShouldReturnTheCursor() |
||
| 82 | } |
||
| 83 |
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: