htmlgen\test\CaptureTest::test_html_expects_raw_output_from_capture PHP Метод

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);
    }