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

30 lines
877 B
Plaintext
Raw Normal View History

2003-08-01 00:22:43 +00:00
--TEST--
Verbose tidy_getopt()
2003-08-01 00:22:43 +00:00
--SKIPIF--
<?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"));
var_dump($a->getopt('bogus-opt'));
var_dump(tidy_getopt($a, 'non-ASCII string <20><><EFBFBD>'));
2003-08-01 00:22:43 +00:00
?>
--EXPECTF--
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)
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)