1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00
Files
Max Semenik 7f2f0c007c Migrate skip checks to --EXTENSIONS--, p4
For rationale, see #6787

Extensions migrated in part 4:
* simplexml
* skeleton
* soap
* spl
* sqlite3
* sysvmsg
* sysvsem
* tidy - also removed a check for an ancient dependency version
2021-04-08 10:36:44 +02:00

37 lines
621 B
PHP

--TEST--
libtidy handling of 'new-blocklevel-tags'
--EXTENSIONS--
tidy
--FILE--
<?php
// more info at http://sf.net/tracker/?func=detail&atid=390963&aid=1598422&group_id=27659
$contents = '
<wps:block>
<wps:var>
<wps:value></wps:value>
</wps:var>
</wps:block>';
$config = array(
'doctype' => 'omit',
'new-blocklevel-tags' => 'wps:block,wps:var,wps:value',
'newline' => 'LF'
);
$tidy = tidy_parse_string($contents, $config, 'utf8');
$tidy->cleanRepair();
echo $tidy;
?>
--EXPECTF--
<html>
<head>
<title></title>
</head>
<body>
<wps:block>%w<wps:var>%w<wps:value></wps:value>%w</wps:var>%w</wps:block>
</body>
</html>