xref: /PHP-5.6/ext/tidy/tests/021.phpt (revision aa6593f9)
1--TEST--
2tidy_get_opt_doc()
3--SKIPIF--
4<?php if (!extension_loaded("tidy") || !function_exists('tidy_get_opt_doc')) print "skip"; ?>
5--FILE--
6<?php
7
8var_dump(tidy_get_opt_doc(new tidy, 'some_bogus_cfg'));
9
10$t = new tidy;
11var_dump($t->getOptDoc('ncr'));
12var_dump(strlen(tidy_get_opt_doc($t, 'wrap')) > 99);
13?>
14--EXPECTF--
15Warning: tidy_get_opt_doc(): Unknown Tidy Configuration Option 'some_bogus_cfg' in %s021.php on line 3
16bool(false)
17string(73) "This option specifies if Tidy should allow numeric character references. "
18bool(true)
19