Completed
Push — master ( c81f6c...1650a0 )
by mw
07:33
created

OutlineItemTest::testCanConstruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace SRF\Tests\Outline;
4
5
use SRF\Outline\OutlineItem;
6
7
/**
8
 * @covers \SRF\Outline\OutlineItem
9
 * @group semantic-result-formats
10
 *
11
 * @license GNU GPL v2+
12
 * @since 3.1
13
 *
14
 * @author mwjames
15
 */
16
class OutlineItemTest extends \PHPUnit_Framework_TestCase {
17
18
	public function testCanConstruct() {
19
20
		$this->assertInstanceOf(
21
			OutlineItem::class,
22
			new OutlineItem( [] )
23
		);
24
	}
25
26
	public function testPropertyAccess() {
27
28
		$instance = new OutlineItem( [ 'Foo' ] );
29
30
		$this->assertEquals(
31
			[ 'Foo' ],
32
			$instance->row
33
		);
34
	}
35
36
}
37