function testPrepend() { $original = 'Original'; $prepend = 'Prepend'; $block = new HtmlBlock($original); Buffer::prependTo($block); echo $prepend; Buffer::end(); $this->assertType('Block', $block); $this->assertEquals($prepend . $original, (string) $block); }