for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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() )