Conditions | 1 |
Paths | 1 |
Total Lines | 34 |
Code Lines | 15 |
Lines | 34 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
30 | View Code Duplication | public function itReturnsAListOfPayments() |
|
31 | { |
||
32 | $this->bunqClient->get('/v1/user/1/monetary-account/1/payment')->willReturn( |
||
33 | [ |
||
34 | 'Response' => [ |
||
35 | [ |
||
36 | 'Payment' => [ |
||
37 | 'amount' => [ |
||
38 | 'value' => '12.50', |
||
39 | 'currency' => 'EUR', |
||
40 | ], |
||
41 | ], |
||
42 | ], |
||
43 | ], |
||
44 | ] |
||
45 | ); |
||
46 | |||
47 | $result = $this->resource->listPayments(1, 1); |
||
48 | |||
49 | $expectedResult = [ |
||
50 | 'Response' => [ |
||
51 | [ |
||
52 | 'Payment' => [ |
||
53 | 'amount' => [ |
||
54 | 'value' => 1250, |
||
55 | 'currency' => 'EUR', |
||
56 | ], |
||
57 | ], |
||
58 | ], |
||
59 | ], |
||
60 | ]; |
||
61 | |||
62 | $this->assertEquals($expectedResult, $result); |
||
63 | } |
||
64 | |||
98 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..