use t::TestpQuery tests => 7; use pQuery; # Test html() method # Test toHtml() method # Test with non DOM objects # Multiple is pQuery->html, undef, "html of empty object is undef"; is pQuery->toHtml, undef, "toHtml of empty object is undef"; is pQuery('
aaa bbb ccc
')->toHtml, 'aaa bbb ccc
', 'toHtml of single tree works'; is pQuery('aaa bbb ccc
')->html, 'aaa bbb ccc', 'html of single tree works'; open FILE, 't/document1.html' or die $!; my $html = do {local $/;