Fix test for libtidy 5.6.0

libtidy 5.6.0 remove the language option from the library, it is only
supported on cli. Prior to that, this option was not used in the
library. Thus, exclude the option presence from test.
This commit is contained in:
Anatol Belski 2018-01-11 14:28:09 +01:00
parent a843a86e6f
commit 83a77383b9

View File

@ -12,18 +12,15 @@ $buffer = '<html></html>';
$config = array(
'indent' => true, // AutoBool
'indent-attributes' => true, // Boolean
'indent-spaces' => 3, // Integer
'language' => 'de'); // String
'indent-spaces' => 3); // Integer
$tidy = new tidy();
$tidy->parseString($buffer, $config);
$c = $tidy->getConfig();
var_dump($c['indent']);
var_dump($c['indent-attributes']);
var_dump($c['indent-spaces']);
var_dump($c['language']);
?>
--EXPECTF--
int(1)
bool(true)
int(3)
%s(2) "de"