Skip to content

Commit

Permalink
Fix test for libtidy 5.6.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
weltling committed Jan 11, 2018
1 parent a843a86 commit 83a7738
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ext/tidy/tests/030.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 83a7738

Please sign in to comment.