--TEST-- Ensure tidy_get_status() returns correct status --CREDITS-- Stefan Priebsch --SKIPIF-- --FILE--

paragraph

'; $tidy = tidy_parse_string($html); echo tidy_get_status($tidy); // status 0 indicates no errors or warnings $html = '

paragraph'; $tidy = tidy_parse_string($html); echo tidy_get_status($tidy); // status 1 indicates warnings $html = 'test'; $tidy = tidy_parse_string($html); echo tidy_get_status($tidy); // status 2 indicates error ?> --EXPECT-- 012