xref: /PHP-7.1/ext/tidy/tests/tidy_error1.phpt (revision 74560ac7)
1--TEST--
2Notice triggered by invalid configuration options
3--CREDITS--
4Christian Wenz <wenz@php.net>
5--SKIPIF--
6<?php
7  if (!extension_loaded('tidy')) die ('skip tidy not present');
8?>
9--FILE--
10<?php
11$buffer = '<html></html>';
12$config = array('bogus' => 'willnotwork');
13
14$tidy = new tidy();
15var_dump($tidy->parseString($buffer, $config));
16?>
17--EXPECTF--
18Notice: tidy::parseString(): Unknown Tidy Configuration Option 'bogus' in %s on line %d
19bool(true)
20