Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function test_signature() { |
||
18 | $amount = 5000; |
||
19 | $currency = 'EUR'; |
||
20 | $account = 'Test'; |
||
21 | $site_id = '1234'; |
||
22 | $transaction_id = '1234567890'; |
||
23 | |||
24 | $signature = Signature::generate( $amount, $currency, $account, $site_id, $transaction_id ); |
||
25 | |||
26 | $expected = 'af90311cf82cbf9bb4fcda5a54005b92'; |
||
27 | |||
28 | $this->assertEquals( $expected, $signature ); |
||
29 | } |
||
31 |