1 | <?php |
||
5 | class MainLaLitTest extends \PHPUnit_Framework_TestCase |
||
6 | { |
||
7 | public function provideTestData() |
||
11 | |||
12 | /** |
||
13 | * @dataProvider provideTestData |
||
14 | * |
||
15 | * @param string $php |
||
16 | * @param string $xml |
||
17 | * @param string $structure |
||
18 | */ |
||
19 | public function testArrayToXML($php, $xml, $structure) |
||
26 | |||
27 | /** |
||
28 | * @dataProvider provideTestData |
||
29 | * |
||
30 | * @param string $php |
||
31 | * @param string $xmlString |
||
32 | * @param string $structure |
||
33 | */ |
||
34 | public function testXMLToArray($php, $xmlString, $structure) |
||
48 | } |
||
49 |
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: