From: Michael Orlitzky Date: Fri, 10 Jun 2016 03:29:14 +0000 (-0400) Subject: ext/tidy: update the configuration file test to not inspect output. X-Git-Tag: php-7.1.0beta1~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a467a42dd179263f334bcfaca76d320d57d7bd19;p=php 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. --- 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