xref: /PHP-8.3/ext/tidy/tests/tidy_error1.phpt (revision 7f2f0c00)
1--TEST--
2Notice triggered by invalid configuration options
3--CREDITS--
4Christian Wenz <wenz@php.net>
5--EXTENSIONS--
6tidy
7--FILE--
8<?php
9$buffer = '<html></html>';
10$config = array('bogus' => 'willnotwork');
11
12$tidy = new tidy();
13var_dump($tidy->parseString($buffer, $config));
14
15?>
16--EXPECTF--
17Warning: tidy::parseString(): Unknown Tidy configuration option "bogus" in %s on line %d
18bool(true)
19