for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hyde\Framework\Testing\Unit;
use Hyde\Framework\Concerns\HasTableOfContents;
use Hyde\Testing\TestCase;
/**
* Class HasTableOfContentsTest.
*
* @covers \Hyde\Framework\Concerns\HasTableOfContents
* @see \Hyde\Framework\Testing\Feature\Actions\GeneratesSidebarTableOfContentsTest
*/
class HasTableOfContentsTest extends TestCase
{
use HasTableOfContents;
public function testConstructorCreatesTableOfContentsString()
$this->body = '## Title';
body
$this->assertEquals('<ul class="table-of-contents"><li><a href="#title">Title</a></li></ul>', str_replace("\n", '', $this->getTableOfContents()));
}