| 1 | <?php |
||
| 17 | class MappingIteratorTest extends \PHPUnit_Framework_TestCase { |
||
| 18 | |||
| 19 | public function testCanConstruct() { |
||
| 26 | |||
| 27 | public function testInvalidConstructorArgumentThrowsException() { |
||
| 32 | |||
| 33 | public function testdoIterateOnArray() { |
||
| 50 | |||
| 51 | public function testdoIterateOnArrayIterator() { |
||
| 68 | |||
| 69 | } |
||
| 70 |
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: