| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | public function testGetSecureUrl() |
||
| 14 | { |
||
| 15 | $gateway = new Gateway(); |
||
| 16 | |||
| 17 | // INITIAL TEST MODE IS TRUE |
||
| 18 | self::assertEquals( |
||
| 19 | 'https://secure-stage.twispay.com', |
||
| 20 | $gateway->getSecureUrl() |
||
| 21 | ); |
||
| 22 | |||
| 23 | $gateway->setTestMode(true); |
||
| 24 | self::assertEquals( |
||
| 25 | 'https://secure-stage.twispay.com', |
||
| 26 | $gateway->getSecureUrl() |
||
| 27 | ); |
||
| 28 | |||
| 29 | $gateway->setTestMode(false); |
||
| 30 | self::assertEquals( |
||
| 31 | 'https://secure.twispay.com', |
||
| 32 | $gateway->getSecureUrl() |
||
| 33 | ); |
||
| 36 |