set_cfg('preserve_css',false);
$css_code = file_get_contents('fisubsilver.css');
$css->parse($css_code);
if($css->css === $xhtml_result) {
echo '
XHTML OK!
';
} else {
echo 'XHTML failed!
';
}
flush();
$css_code = file_get_contents('base.css');
$css->parse($css_code);
if($css->css === $ala_result) {
echo 'ALA OK!
';
} else {
echo 'ALA failed!
';
}
flush();
$css->set_cfg('remove_last_;',true);
if($css->print->formatted() === $ala_html) {
echo 'ALA HTML OK!
';
} else {
echo 'ALA HTML failed!
';
}
flush();
$css->set_cfg('optimise_shorthands',false);
$css->set_cfg('merge_selectors',1);
$css->parse($css_code);
if($css->css === $ala_options_result) {
echo 'ALA +options OK!
';
} else {
echo 'ALA +options failed!
';
}
flush();
?>