public test_html_expects_raw_output_from_capture ( ) |
public function test_html_expects_raw_output_from_capture()
{
$expected = "<p>i <3 honey bees</p>";
$actual = (string) html('p', capture(function () {
print 'i <3 honey bees';
}));
$this->assertSame($expected, $actual);
}