| Total Complexity | 1 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class TransactionExceptionTest extends TestCase |
||
| 6 | { |
||
| 7 | |||
| 8 | public function testDefaultConstruction() |
||
| 9 | { |
||
| 10 | $message = 'imamessagestring'; |
||
| 11 | |||
| 12 | $e = new TransactionException($message); |
||
| 13 | |||
| 14 | $this->assertEquals('Error occured during transaction', $e->getTitle()); |
||
| 15 | $this->assertEquals('alert-error', $e->getAlertType()); |
||
| 16 | $this->assertEquals(0, $e->getCode()); |
||
| 17 | $this->assertEquals(null, $e->getPrevious()); |
||
| 18 | } |
||
| 21 |