htmlgen\test\RenderTest::test_render_will_not_double_encode_raw_strings PHP Method

test_render_will_not_double_encode_raw_strings() public method

    public function test_render_will_not_double_encode_raw_strings()
    {
        $expected = '<strong>bees &amp; honey</strong>';
        $actual = capture(function ($stream) {
            render($stream, raw('<strong>'), 'bees & honey', raw('</strong>'));
        });
        $this->assertSame($expected, $actual['stdout']);
    }