| 1 | <?php |
||
| 3 | class TransactionExceptionTest extends PHPUnit_Framework_TestCase |
||
| 4 | { |
||
| 5 | |||
| 6 | public function testDefaultConstruction() |
||
| 7 | { |
||
| 8 | $message = 'imamessagestring'; |
||
| 9 | |||
| 10 | $e = new TransactionException($message); |
||
| 11 | |||
| 12 | $this->assertEquals('Error occured during transaction', $e->getTitle()); |
||
| 13 | $this->assertEquals('alert-error', $e->getAlertType()); |
||
| 14 | $this->assertEquals(0, $e->getCode()); |
||
| 15 | $this->assertEquals(null, $e->getPrevious()); |
||
| 16 | } |
||
| 17 | |||
| 18 | } |
||
| 19 |