Browse Source

bootstrap plus robuste au nouveau protocole de test PHPUnit

master
Cerdic 5 months ago
parent
commit
f9f07e5d6e
  1. 16
      tests/zcore_echafaudable.php

16
tests/zcore_echafaudable.php

@ -8,10 +8,18 @@
*/
$test = 'zcore_echafaudable';
$remonte = "../";
while (!is_dir($remonte."ecrire"))
$remonte = "../$remonte";
require $remonte.'tests/test.inc';
$remonte = "";
while (!is_file($remonte."test.inc") and !is_dir($remonte.'ecrire/'))
$remonte = $remonte."../";
foreach ([$remonte."test.inc", $remonte."tests/test.inc", $remonte."tests/tests/legacy/test.inc"] as $f) {
if (is_file($f)){
require $f;
break;
}
}
if (!defined('_SPIP_TEST_INC')) {
die('Impossible de trouver test.inc depuis ' .getcwd());
}
find_in_path("public/styliser_par_z.php",'',true);
//

Loading…
Cancel
Save