MissingNodeTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 17
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetType() 0 4 1
A testEquals() 0 4 1
A testNonEquals() 0 4 1
1
<?php
2
3
namespace PPP\DataModel;
4
5
/**
6
 * @covers PPP\DataModel\MissingNode
7
 *
8
 * @licence AGPLv3+
9
 * @author Thomas Pellissier Tanon
10
 */
11
class MissingNodeTest extends \PHPUnit_Framework_TestCase {
12
13
	public function testGetType() {
14
		$node = new MissingNode();
15
		$this->assertEquals('missing', $node->getType());
16
	}
17
18
	public function testEquals() {
19
		$node = new MissingNode();
20
		$this->assertTrue($node->equals(new MissingNode()));
21
	}
22
23
	public function testNonEquals() {
24
		$node = new MissingNode();
25
		$this->assertFalse($node->equals(2));
26
	}
27
}
28