Completed
Push — master ( 18cdc2...7b9bde )
by Simon
03:22
created

TransactionExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 4
Bugs 4 Features 0
Metric Value
wmc 1
c 4
b 4
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10
1
<?php
2
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