blob: ac00d67c289fac7bd6caf0a988702de96be87371 (
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
37
38
39
40
41
42
43
|
<?php
namespace SRF\Tests\Outline;
use SRF\Outline\TemplateBuilder;
use SRF\Outline\OutlineTree;
/**
* @covers \SRF\Outline\TemplateBuilder
* @group semantic-result-formats
*
* @license GNU GPL v2+
* @since 3.1
*
* @author mwjames
*/
class TemplateBuilderTest extends \PHPUnit_Framework_TestCase {
public function testCanConstruct() {
$this->assertInstanceOf(
TemplateBuilder::class,
new TemplateBuilder( [] )
);
}
public function testBuildForEmptyTree() {
$params = [
'outlineproperties' => [ 'Foo' ],
'template' => 'Bar',
'userparam' => ''
];
$instance = new TemplateBuilder( $params );
$this->assertInternalType(
'string',
$instance->build( new OutlineTree() )
);
}
}
|