php-src/ext/tidy/tests/tidy_error1.phpt
2009-08-27 08:49:24 +00:00

20 lines
453 B
PHP

--TEST--
Notice triggered by invalid configuration options
--CREDITS--
Christian Wenz <wenz@php.net>
--SKIPIF--
<?php
if (!extension_loaded('tidy')) die ('skip tidy not present');
?>
--FILE--
<?php
$buffer = '<html></html>';
$config = array('bogus' => 'willnotwork');
$tidy = new tidy();
var_dump($tidy->parseString($buffer, $config));
?>
--EXPECTF--
Notice: tidy::parseString(): Unknown Tidy Configuration Option 'bogus' in %s on line %d
bool(true)