diff options
author | Patrick Allaert <patrickallaert@php.net> | 2009-08-27 08:49:24 +0000 |
---|---|---|
committer | Patrick Allaert <patrickallaert@php.net> | 2009-08-27 08:49:24 +0000 |
commit | e9201af574bea93700523f4bde763dbd6f5a3917 (patch) | |
tree | aef32898b89b8379fc6bdd730da6e2d537c548ff | |
parent | 0ca2db41a9d8d952d30cd5cce4f67e17d17e5bce (diff) | |
download | php-git-e9201af574bea93700523f4bde763dbd6f5a3917.tar.gz |
Added: Tidy test with invalid configuration options
-rw-r--r-- | ext/tidy/tests/tidy_error1.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/tidy/tests/tidy_error1.phpt b/ext/tidy/tests/tidy_error1.phpt new file mode 100644 index 0000000000..a92446925f --- /dev/null +++ b/ext/tidy/tests/tidy_error1.phpt @@ -0,0 +1,19 @@ +--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) |