public function testBlockPrependTemplateRender() { $tpl = new Template('test'); $tpl->layout('layouts/block'); $block = $tpl->block('js')->content(function () { })->prepend(function () { echo 'Content'; }); $this->assertEquals("Content<div><p>Test</p></div>", $tpl->content()); }