summaryrefslogtreecommitdiff
path: root/ext/tidy/tests/006.phpt
diff options
context:
space:
mode:
authorJohn Coggeshall <john@php.net>2004-01-14 02:43:33 +0000
committerJohn Coggeshall <john@php.net>2004-01-14 02:43:33 +0000
commit604890702933a37814b379b0a947bb092e837b3e (patch)
treea33e061a946db1595a3743d65a60ab4e0589485c /ext/tidy/tests/006.phpt
parentbc9cbe271565af7eb1ad4ad30125bb68a43a8b24 (diff)
downloadphp-git-604890702933a37814b379b0a947bb092e837b3e.tar.gz
With the approval of Andi, changing the Tidy API to reduce the possible
amount of confusion when setting Tidy configuration options. All configuration must now be done pre-parsing of the document. Removed references to the tidy_attr class, as it is no longer used (since tidy 2.0) and made tidy throw exceptions for all truly non-fatal errors.
Diffstat (limited to 'ext/tidy/tests/006.phpt')
-rw-r--r--ext/tidy/tests/006.phpt10
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/tidy/tests/006.phpt b/ext/tidy/tests/006.phpt
index 48085ae971..1609243974 100644
--- a/ext/tidy/tests/006.phpt
+++ b/ext/tidy/tests/006.phpt
@@ -7,13 +7,9 @@ Verbose tidy_get_error_buffer()
--INI--
--FILE--
<?php
- if (class_exists("tidy_doc")) {
- $a = tidy_parse_string("<HTML><asd asdf></HTML>");
- echo tidy_get_error_buffer($a);
- } else {
- tidy_parse_string("<HTML><asd asdf></HTML>");
- echo tidy_get_error_buffer(true);
- }
+ $a = tidy_parse_string("<HTML><asd asdf></HTML>");
+ echo tidy_get_error_buffer($a);
+
?>
--EXPECT--
line 1 column 1 - Warning: missing <!DOCTYPE> declaration