summaryrefslogtreecommitdiff
path: root/ext/tidy/tests/014.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tidy/tests/014.phpt')
-rw-r--r--ext/tidy/tests/014.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/tidy/tests/014.phpt b/ext/tidy/tests/014.phpt
new file mode 100644
index 0000000..a391b3d
--- /dev/null
+++ b/ext/tidy/tests/014.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Passing configuration options through tidy_parse_string().
+--SKIPIF--
+<?php if (!extension_loaded("tidy")) print "skip"; ?>
+--FILE--
+<?php
+ $text = "<B>testing</I>";
+ $tidy = tidy_parse_string($text, array('show-body-only'=>true));
+ tidy_clean_repair($tidy);
+ echo tidy_get_output($tidy);
+
+?>
+--EXPECT--
+<b>testing</b> \ No newline at end of file