Completed
Pull Request — master (#467)
by
unknown
19:23
created

GanttTaskTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testCanConstruct() 0 4 1
A testPropertyAccess() 0 11 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Sebastian
5
 * Date: 30.01.2019
6
 * Time: 13:47
7
 */
8
9
namespace SRF\Tests\Mermaid;
10
11
use SRF\Mermaid\GanttTask;
12
13
14
class GanttTaskTest extends \PHPUnit_Framework_TestCase {
15
16
	public function testCanConstruct() {
17
18
		$this->assertInstanceOf( GanttTask::class, new GanttTask( [] ) );
19
	}
20
21
	public function testPropertyAccess() {
22
23
		$instance = new GanttTask();
24
25
		$instance->setTitle( 'GanttTask' );
26
		$this->assertEquals( $instance->getTitle(), 'GanttTask' );
27
28
		$instance->setID( '298043571780240' );
29
		$this->assertEquals( $instance->getID(), '298043571780240' );
30
31
	}
32
}