| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class AlreadyProcessedExceptionTest extends AbstractExceptionTest |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * ERROR_MESSAGE |
||
| 16 | */ |
||
| 17 | const ERROR_MESSAGE = 'Cart already processed'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * ERROR_CODE |
||
| 21 | */ |
||
| 22 | const ERROR_CODE = 200; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * testConstructor |
||
| 26 | */ |
||
| 27 | public function testConstructor() |
||
| 28 | { |
||
| 29 | $exception = new AlreadyProcessedException(); |
||
| 30 | $this->assertEquals(self::ERROR_MESSAGE, $exception->getMessage()); |
||
| 31 | $this->assertEquals(self::ERROR_CODE, $exception->getCode()); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * testConstant |
||
| 36 | */ |
||
| 37 | public function testConstant() |
||
| 41 | } |
||
| 42 | } |
||
| 43 |