Completed
Push — master ( aead67...02aeb8 )
by mw
171:27 queued 136:23
created

DataItemExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCanConstruct() 0 14 1
1
<?php
2
3
namespace SMW\Tests\Exception;
4
5
use SMW\Exception\DataItemException;
6
7
/**
8
 * @covers \SMW\Exception\DataItemException
9
 * @group semantic-mediawiki
10
 *
11
 * @license GNU GPL v2+
12
 * @since 2.5
13
 *
14
 * @author mwjames
15
 */
16
class DataItemExceptionTest extends \PHPUnit_Framework_TestCase {
17
18
	public function testCanConstruct() {
19
20
		$instance = new DataItemException();
21
22
		$this->assertInstanceof(
23
			'\SMW\Exception\DataItemException',
24
			$instance
25
		);
26
27
		$this->assertInstanceof(
28
			'\RuntimeException',
29
			$instance
30
		);
31
	}
32
33
}
34