'screen')); if (rtrim($compacte)!=rtrim($expected)) { erreur("minifier_css(array('media'=>'screen'))",$compacte,$expected); $ok = false; } lire_fichier(dirname(__FILE__)."/css/expected_highest_screen.css", $expected); $compacte = minifier_css($css_code,array('media'=>'screen','template'=>'highest')); if (rtrim($compacte)!=rtrim($expected)) { erreur("minifier_css(array('media'=>'screen','template'=>'highest'))",$compacte,$expected); $ok = false; } lire_fichier(dirname(__FILE__)."/css/source_simple.css", $css_code); lire_fichier(dirname(__FILE__)."/css/expected_simple.css", $expected); $compacte = minifier_css($css_code,'screen'); if (rtrim($compacte)!=rtrim($expected)) { erreur("minifier_css('screen')",$compacte,$expected); $ok = false; } if ($ok) echo "OK"; function erreur($titre,$result,$expected){ echo "Erreur $titre
"; echo "Resultat:
$result
"; echo "Attendu :
$expected
"; } ?>