summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/OutlineItemTest.php
blob: 6819ee10fc62f908b45fe66b2483c6e813ab513d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php

namespace SRF\Tests\Outline;

use SRF\Outline\OutlineItem;

/**
 * @covers \SRF\Outline\OutlineItem
 * @group semantic-result-formats
 *
 * @license GNU GPL v2+
 * @since 3.1
 *
 * @author mwjames
 */
class OutlineItemTest extends \PHPUnit_Framework_TestCase {

	public function testCanConstruct() {

		$this->assertInstanceOf(
			OutlineItem::class,
			new OutlineItem( [] )
		);
	}

	public function testPropertyAccess() {

		$instance = new OutlineItem( [ 'Foo' ] );

		$this->assertEquals(
			[ 'Foo' ],
			$instance->row
		);
	}

}