2003-08-01 00:22:43 +00:00
|
|
|
|
--TEST--
|
2004-04-18 07:58:19 +00:00
|
|
|
|
Verbose tidy_getopt()
|
2003-08-01 00:22:43 +00:00
|
|
|
|
--SKIPIF--
|
2003-08-06 21:32:46 +00:00
|
|
|
|
<?php if (!extension_loaded("tidy")) print "skip"; ?>
|
2003-08-01 00:22:43 +00:00
|
|
|
|
--INI--
|
2003-12-19 14:24:04 +00:00
|
|
|
|
tidy.default_config=
|
2003-08-01 00:22:43 +00:00
|
|
|
|
--FILE--
|
2003-12-19 14:24:04 +00:00
|
|
|
|
<?php
|
2004-11-22 15:12:32 +00:00
|
|
|
|
$a = new tidy(dirname(__FILE__)."/007.html");
|
2003-12-19 14:24:04 +00:00
|
|
|
|
echo "Current Value of 'tidy-mark': ";
|
|
|
|
|
var_dump($a->getopt("tidy-mark"));
|
|
|
|
|
echo "Current Value of 'error-file': ";
|
|
|
|
|
var_dump($a->getopt("error-file"));
|
|
|
|
|
echo "Current Value of 'tab-size': ";
|
|
|
|
|
var_dump($a->getopt("tab-size"));
|
2006-09-05 15:23:26 +00:00
|
|
|
|
|
|
|
|
|
var_dump($a->getopt('bogus-opt'));
|
|
|
|
|
var_dump(tidy_getopt($a, 'non-ASCII string <20><><EFBFBD>'));
|
2003-08-01 00:22:43 +00:00
|
|
|
|
?>
|
2006-09-05 15:23:26 +00:00
|
|
|
|
--EXPECTF--
|
2004-04-18 07:58:19 +00:00
|
|
|
|
Current Value of 'tidy-mark': bool(false)
|
2003-08-01 00:22:43 +00:00
|
|
|
|
Current Value of 'error-file': string(0) ""
|
|
|
|
|
Current Value of 'tab-size': int(8)
|
2006-09-05 15:23:26 +00:00
|
|
|
|
|
|
|
|
|
Warning: tidy::getOpt(): Unknown Tidy Configuration Option 'bogus-opt' in %s007.php on line 10
|
|
|
|
|
bool(false)
|
|
|
|
|
|
|
|
|
|
Warning: tidy_getopt(): Unknown Tidy Configuration Option 'non-ASCII string <20><><EFBFBD>' in %s007.php on line 11
|
|
|
|
|
bool(false)
|