From a467a42dd179263f334bcfaca76d320d57d7bd19 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 9 Jun 2016 23:29:14 -0400 Subject: [PATCH] ext/tidy: update the configuration file test to not inspect output. One of the tests for tidy (016.phpt) is testing that we can use a configuration file (016.tcfg) instead of a string to configure tidy. It was observing the output of an API call, which proved too fragile now that we support tidy-html5 as well. Instead, the test was updated to inspect $tidy->getConfig() to ensure that the config file was actually processed and will be respected. --- ext/tidy/tests/016.phpt | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/ext/tidy/tests/016.phpt b/ext/tidy/tests/016.phpt index 001371aa3e..05b7cc18f9 100644 --- a/ext/tidy/tests/016.phpt +++ b/ext/tidy/tests/016.phpt @@ -4,21 +4,10 @@ Passing configuration file through tidy_parse_file() (may fail with buggy libtid --FILE-- getConfig(); + echo $cfg["clean"]; ?> --EXPECT-- - - - - - - - - -

testing

- - +1 -- 2.50.1