File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
tidy /
tests /
030.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:05 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--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
'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"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>