php-src/ext/tidy/tests/007.phpt

36 lines
1.0 KiB
Plaintext
Raw Normal View History

2003-08-01 00:22:43 +00:00
--TEST--
Verbose tidy_setopt() / tidy_getopt()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
2003-08-01 00:22:43 +00:00
--POST--
--GET--
--INI--
--FILE--
<?php
2003-08-01 00:22:43 +00:00
echo "Current Value of 'tidy-mark': ";
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': ";
var_dump(tidy_getopt("tidy-mark"));
2003-08-01 00:22:43 +00:00
echo "Current Value of 'error-file': ";
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': ";
var_dump(tidy_getopt("error-file"));
2003-08-01 00:22:43 +00:00
echo "Current Value of 'tab-size': ";
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': ";
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)