From 552d8f483615d20a7be1ddeedbec312e8bb6c770 Mon Sep 17 00:00:00 2001 From: Patrick Allaert Date: Thu, 27 Aug 2009 08:50:07 +0000 Subject: [PATCH] Added: Tidy basic test for getConfig() --- ext/tidy/tests/030.phpt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ext/tidy/tests/030.phpt diff --git a/ext/tidy/tests/030.phpt b/ext/tidy/tests/030.phpt new file mode 100644 index 0000000000..c351f9af15 --- /dev/null +++ b/ext/tidy/tests/030.phpt @@ -0,0 +1,29 @@ +--TEST-- +getConfig() method - basic test for getConfig() +--CREDITS-- +Christian Wenz +--SKIPIF-- + +--FILE-- +'; +$config = array( + 'indent' => true, // AutoBool + 'indent-attributes' => true, // Boolean + 'indent-spaces' => 3, // Integer + 'language' => 'de'); // String +$tidy = new tidy(); +$tidy->parseString($buffer, $config); +$c = $tidy->getConfig(); +var_dump($c['indent']); +var_dump($c['indent-attributes']); +var_dump($c['indent-spaces']); +var_dump($c['language']); +?> +--EXPECTF-- +int(1) +bool(true) +int(3) +%s(2) "de" -- 2.50.1