2003-08-01 00:22:43 +00:00
|
|
|
--TEST--
|
|
|
|
Verbose tidy_setopt() / tidy_getopt()
|
|
|
|
--SKIPIF--
|
2003-08-06 21:32:46 +00:00
|
|
|
<?php if (!extension_loaded("tidy")) print "skip"; ?>
|
2003-08-01 00:22:43 +00:00
|
|
|
--POST--
|
|
|
|
--GET--
|
|
|
|
--INI--
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2003-09-22 18:40:38 +00:00
|
|
|
|
2003-08-01 00:22:43 +00:00
|
|
|
echo "Current Value of 'tidy-mark': ";
|
2003-09-22 18:40:38 +00:00
|
|
|
var_dump(tidy_getopt("tidy-mark"));
|
2003-08-01 00:22:43 +00:00
|
|
|
tidy_setopt($tidy, "tidy-mark", true);
|
|
|
|
echo "\nNew Value of 'tidy-mark': ";
|
2003-09-22 18:40:38 +00:00
|
|
|
var_dump(tidy_getopt("tidy-mark"));
|
2003-08-01 00:22:43 +00:00
|
|
|
echo "Current Value of 'error-file': ";
|
2003-09-22 18:40:38 +00:00
|
|
|
var_dump(tidy_getopt("error-file"));
|
2003-08-01 00:22:43 +00:00
|
|
|
tidy_setopt($tidy, "error-file", "foobar");
|
|
|
|
echo "\nNew Value of 'error-file': ";
|
2003-09-22 18:40:38 +00:00
|
|
|
var_dump(tidy_getopt("error-file"));
|
2003-08-01 00:22:43 +00:00
|
|
|
echo "Current Value of 'tab-size': ";
|
2003-09-22 18:40:38 +00:00
|
|
|
var_dump(tidy_getopt("tab-size"));
|
2003-08-01 00:22:43 +00:00
|
|
|
tidy_setopt($tidy, "tab-size", 10);
|
|
|
|
echo "\nNew Value of 'tab-size': ";
|
2003-09-22 18:40:38 +00:00
|
|
|
var_dump(tidy_getopt("tab-size"));
|
2003-08-01 00:22:43 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
Current Value of 'tidy-mark': bool(false)
|
|
|
|
|
|
|
|
New Value of 'tidy-mark': bool(true)
|
|
|
|
Current Value of 'error-file': string(0) ""
|
|
|
|
|
|
|
|
New Value of 'error-file': string(6) "foobar"
|
|
|
|
Current Value of 'tab-size': int(8)
|
|
|
|
|
|
|
|
New Value of 'tab-size': int(10)
|