mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
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:
parent
a843a86e6f
commit
83a77383b9
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user