diff options
Diffstat (limited to 'ext/tidy/tests/003.phpt')
| -rw-r--r-- | ext/tidy/tests/003.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/tidy/tests/003.phpt b/ext/tidy/tests/003.phpt new file mode 100644 index 0000000000..fe0fefc688 --- /dev/null +++ b/ext/tidy/tests/003.phpt @@ -0,0 +1,27 @@ +--TEST-- +tidy_clean_repair() +--SKIPIF-- +<?php if (!extension_loaded("Tidy")) print "skip"; ?> +--POST-- +--GET-- +--INI-- +--FILE-- +<?php + + $tidy = tidy_create(); + + tidy_parse_string($tidy, "<HTML></HTML>"); + tidy_clean_repair($tidy); + + echo tidy_get_output($tidy); + +?> +--EXPECT-- +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +<title></title> +</head> +<body> +</body> +</html> |
