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