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