| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function test() { |
||
| 20 | $parameters = new IDealStartParameters(); |
||
| 21 | $parameters->rtlo = '12345'; |
||
| 22 | $parameters->bank = 'test'; |
||
| 23 | $parameters->description = 'Description'; |
||
| 24 | $parameters->amount = '100'; |
||
| 25 | $parameters->return_url = 'http://example.com/'; |
||
| 26 | $parameters->report_url = 'http://example.com/'; |
||
| 27 | $parameters->cinfo_in_callback = true; |
||
| 28 | |||
| 29 | $array = $parameters->get_array(); |
||
| 30 | |||
| 31 | $this->assertArrayHasKey( 'rtlo', $array ); |
||
| 32 | $this->assertArrayHasKey( 'bank', $array ); |
||
| 33 | $this->assertArrayHasKey( 'description', $array ); |
||
| 34 | $this->assertArrayHasKey( 'amount', $array ); |
||
| 35 | $this->assertArrayHasKey( 'returnurl', $array ); |
||
| 36 | $this->assertArrayHasKey( 'reporturl', $array ); |
||
| 37 | $this->assertArrayHasKey( 'cinfo_in_callback', $array ); |
||
| 38 | } |
||
| 40 |