uawdijnntqw1x1x1
IP : 216.73.216.168
Hostname : webm002.cluster111.gra.hosting.ovh.net
Kernel : Linux webm002.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
atelierpru
/
provence
/
6bf95
/
..
/
IMG
/
..
/
plugins-dist
/
textwheel
/
tests
/
tw_propre.php
/
/
<?php /** * Test unitaire des raccourcis Markdown dans SPIP * */ $test = 'tw_propre'; $remonte = "../"; while (!is_dir($remonte . "ecrire")) { $remonte = "../$remonte"; } require $remonte . 'tests/test.inc'; find_in_path("inc/texte.php", '', true); $GLOBALS['spip_lang'] = 'en'; // corrections typo $GLOBALS['class_spip_plus'] = ''; $GLOBALS['class_spip'] = ''; // ajouter le dossier squelettes de test au chemin _chemin(_DIR_PLUGIN_TW . "tests/squelettes/"); $notes = charger_fonction("notes", "inc"); function propre_notes($texte) { global $notes; $texte = propre($texte); if ($r = $notes(array())) { $texte .= "<div class='notes'>$r</div>"; $notes('', 'depiler'); $notes('', 'empiler'); } return $texte; } // // hop ! on y va // $err = tester_fun('propre_notes', essais_tw_propre()); // si le tableau $err est pas vide ca va pas if ($err) { die ('<dl>' . join('', $err) . '</dl>'); } echo "OK"; function essais_tw_propre() { $tests = preg_files(_DIR_PLUGIN_TW . "tests/data/base/", '\.txt$'); $texte = $expected = ""; $essais = array(); foreach ($tests as $t) { lire_fichier($t, $texte); lire_fichier(substr($t, 0, -4) . ".html", $expected); $essais[basename($t, ".txt")] = array( $expected, $texte ); } return $essais; } ?>
/home/atelierpru/provence/6bf95/../IMG/../plugins-dist/textwheel/tests/tw_propre.php