Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function testLoadSetParameters(): void |
||
13 | { |
||
14 | $container = $this->getMockBuilder(ContainerBuilder::class)->disableOriginalConstructor()->getMock(); |
||
15 | $parameterBag = $this->getMockBuilder(ParameterBag::class)->disableOriginalConstructor()->getMock(); |
||
16 | |||
17 | $parameterBag->expects($this->any())->method('add'); |
||
18 | $container->expects($this->any())->method('getParameterBag')->willReturn($parameterBag); |
||
19 | |||
20 | $extension = new BeelabPaypalExtension(); |
||
21 | $configs = [ |
||
22 | ['username' => 'a'], |
||
23 | ['password' => 'b'], |
||
24 | ['signature' => 'c'], |
||
25 | ['return_route' => 'pippo'], |
||
26 | ['cancel_route' => 'pluto'], |
||
27 | ]; |
||
28 | $extension->load($configs, $container); |
||
|
|||
29 | $this->assertTrue(true); |
||
30 | } |
||
31 | } |
||
32 |
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: