Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
68 | public function itReturnsASinglePayment() |
||
69 | { |
||
70 | $this->bunqClient->get('/v1/user/1/monetary-account/1/payment/1')->willReturn( |
||
71 | [ |
||
72 | 'Response' => [ |
||
73 | [ |
||
74 | 'Payment' => [ |
||
75 | 'amount' => [ |
||
76 | 'value' => '12.50', |
||
77 | 'currency' => 'EUR', |
||
78 | ], |
||
79 | ], |
||
80 | |||
81 | ], |
||
82 | ], |
||
83 | ] |
||
84 | ); |
||
85 | |||
86 | $result = $this->resource->getPayment(1, 1, 1); |
||
87 | |||
88 | $expectedResult = [ |
||
89 | 'amount' => [ |
||
90 | 'value' => '1250', |
||
91 | 'currency' => 'EUR', |
||
92 | ], |
||
93 | ]; |
||
94 | |||
95 | $this->assertEquals($expectedResult, $result); |
||
96 | } |
||
97 | } |
||
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..