xref: /php-src/ext/tidy/tests/030.phpt (revision 7f2f0c00)
1--TEST--
2getConfig() method - basic test for getConfig()
3--CREDITS--
4Christian Wenz <wenz@php.net>
5--EXTENSIONS--
6tidy
7--FILE--
8<?php
9$buffer = '<html></html>';
10$config = array(
11  'indent' => true, // AutoBool
12  'indent-attributes' => true, // Boolean
13  'indent-spaces' => 3); // Integer
14$tidy = new tidy();
15$tidy->parseString($buffer, $config);
16$c = $tidy->getConfig();
17var_dump($c['indent']);
18var_dump($c['indent-attributes']);
19var_dump($c['indent-spaces']);
20?>
21--EXPECT--
22int(1)
23bool(true)
24int(3)
25