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-02-05 01:38:59 +00:00
|
|
|
$a = new tidy("ext/tidy/tests/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"));
|
2004-01-14 02:43:33 +00:00
|
|
|
|
2003-08-01 00:22:43 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
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)
|