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