xref: /PHP-7.3/ext/tidy/tests/007.phpt (revision aa6593f9)
1--TEST--
2Verbose  tidy_getopt()
3--SKIPIF--
4<?php if (!extension_loaded("tidy")) print "skip"; ?>
5--INI--
6tidy.default_config=
7--FILE--
8<?php
9		$a = new tidy(dirname(__FILE__)."/007.html");
10		echo "Current Value of 'tidy-mark': ";
11		var_dump($a->getopt("tidy-mark"));
12		echo "Current Value of 'error-file': ";
13		var_dump($a->getopt("error-file"));
14		echo "Current Value of 'tab-size': ";
15		var_dump($a->getopt("tab-size"));
16
17		var_dump($a->getopt('bogus-opt'));
18		var_dump(tidy_getopt($a, 'non-ASCII string ���'));
19?>
20--EXPECTF--
21Current Value of 'tidy-mark': bool(false)
22Current Value of 'error-file': string(0) ""
23Current Value of 'tab-size': int(8)
24
25Warning: tidy::getOpt(): Unknown Tidy Configuration Option 'bogus-opt' in %s007.php on line 10
26bool(false)
27
28Warning: tidy_getopt(): Unknown Tidy Configuration Option 'non-ASCII string ���' in %s007.php on line 11
29bool(false)
30