diff options
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/ListTreeBuilderTest.php')
-rw-r--r-- | www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/ListTreeBuilderTest.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/ListTreeBuilderTest.php b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/ListTreeBuilderTest.php new file mode 100644 index 00000000..80679e90 --- /dev/null +++ b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/ListTreeBuilderTest.php @@ -0,0 +1,41 @@ +<?php + +namespace SRF\Tests\Outline; + +use SRF\Outline\ListTreeBuilder; +use SRF\Outline\OutlineTree; + +/** + * @covers \SRF\Outline\ListTreeBuilder + * @group semantic-result-formats + * + * @license GNU GPL v2+ + * @since 3.1 + * + * @author mwjames + */ +class ListTreeBuilderTest extends \PHPUnit_Framework_TestCase { + + public function testCanConstruct() { + + $this->assertInstanceOf( + ListTreeBuilder::class, + new ListTreeBuilder( [] ) + ); + } + + public function testBuildForEmptyTree() { + + $params = [ + 'outlineproperties' => [ 'Foo' ] + ]; + + $instance = new ListTreeBuilder( $params ); + + $this->assertInternalType( + 'string', + $instance->build( new OutlineTree() ) + ); + } + +} |