From e9201af574bea93700523f4bde763dbd6f5a3917 Mon Sep 17 00:00:00 2001 From: Patrick Allaert Date: Thu, 27 Aug 2009 08:49:24 +0000 Subject: [PATCH] Added: Tidy test with invalid configuration options --- ext/tidy/tests/tidy_error1.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ext/tidy/tests/tidy_error1.phpt 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 +--SKIPIF-- + +--FILE-- +'; +$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) -- 2.50.1