1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 20:41:18 +02:00
Files
archived-php-src/ext/tidy/tests/030.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

27 lines
564 B
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
$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)