diff options
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/OutlineTreeTest.php')
-rw-r--r-- | www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/OutlineTreeTest.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/OutlineTreeTest.php b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/OutlineTreeTest.php new file mode 100644 index 00000000..3af491c0 --- /dev/null +++ b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/Outline/OutlineTreeTest.php @@ -0,0 +1,49 @@ +<?php + +namespace SRF\Tests\Outline; + +use SRF\Outline\OutlineTree; + +/** + * @covers \SRF\Outline\OutlineTree + * @group semantic-result-formats + * + * @license GNU GPL v2+ + * @since 3.1 + * + * @author mwjames + */ +class OutlineTreeTest extends \PHPUnit_Framework_TestCase { + + public function testCanConstruct() { + + $this->assertInstanceOf( + OutlineTree::class, + new OutlineTree( [] ) + ); + } + + public function testPropertyAccess() { + + $instance = new OutlineTree(); + + $this->assertEmpty( + $instance->tree + ); + + $this->assertEmpty( + $instance->items + ); + + $this->assertEquals( + 0, + $instance->itemCount + ); + + $this->assertEquals( + 0, + $instance->leafCount + ); + } + +} |