ExceptionTest::testGetErrorList()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Aimeos\Controller\Frontend;
4
5
6
/**
7
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
8
 * @copyright Metaways Infosystems GmbH, 2013
9
 * @copyright Aimeos (aimeos.org), 2015-2025
10
 */
11
class ExceptionTest extends \PHPUnit\Framework\TestCase
12
{
13
	private $object;
14
15
16
	protected function setUp() : void
17
	{
18
		$this->object = new \Aimeos\Controller\Frontend\Exception( 'msg', 1, null, array( 'key' => 'value' ) );
19
	}
20
21
22
	protected function tearDown() : void
23
	{
24
	}
25
26
27
	public function testGetMessage()
28
	{
29
		$this->assertEquals( 'msg', $this->object->getMessage() );
30
	}
31
32
33
	public function testGetCode()
34
	{
35
		$this->assertEquals( 1, $this->object->getCode() );
36
	}
37
38
39
	public function testGetErrorList()
40
	{
41
		$this->assertEquals( array( 'key' => 'value' ), $this->object->getErrorList() );
42
	}
43
}
44