htmlgen\test\RenderTest::test_render_element_for_good_measure_even_though_its_just_a_raw_string_and_we_already_tested_that_lol PHP Method

test_render_element_for_good_measure_even_though_its_just_a_raw_string_and_we_already_tested_that_lol() public method

    public function test_render_element_for_good_measure_even_though_its_just_a_raw_string_and_we_already_tested_that_lol()
    {
        $expected = '<a href="/bees">You won\'t believe these 10 weird facts about bees &excl;</a>';
        $actual = capture(function ($stream) {
            render($stream, html('a', ['href' => '/bees'], "You won't believe these 10 weird facts about bees !"));
        });
        $this->assertSame($expected, $actual['stdout']);
    }