Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
include_once dirname(__FILE__).'/../../../bibliotheque/Surligneur.php';
|
- |
|
3 |
include_once dirname(__FILE__).'/../../../bibliotheque/Trieur.php';
|
- |
|
4 |
include_once dirname(__FILE__).'/../../../modules/resultat/ParametresResultats.php';
|
- |
|
5 |
include_once dirname(__FILE__).'/../../../modules/resultat/Formateur.php';
|
- |
|
6 |
include_once dirname(__FILE__).'/../../../bibliotheque/ChaineManipulateur.php';
|
- |
|
Line 7... |
Line 2... |
7 |
|
2 |
|
8 |
class ResultatFormateurCommun extends PHPUnit_Framework_TestCase {
|
3 |
class ResultatFormateurCommun extends PHPUnit_Framework_TestCase {
|
Line -... |
Line 4... |
- |
|
4 |
const TPL_URL_FICHE = 'http://localhost/eflore/eflore-consultation/index_botanique.php?referentiel=bdtfx&module=fiche&action=fiche&nn=%s';
|
- |
|
5 |
|
- |
|
6 |
public static function setUpBeforeClass() {
|
- |
|
7 |
error_reporting(E_ALL);
|
- |
|
8 |
|
- |
|
9 |
// Enregistrement en première position des autoload de la méthode gérant les classes des services
|
- |
|
10 |
spl_autoload_register(array(get_class(), 'chargerClasseAuto'));
|
- |
|
11 |
}
|
- |
|
12 |
|
- |
|
13 |
public static function chargerClasseAuto($classe) {
|
- |
|
14 |
$cheminBase = __DIR__.'/../../../';
|
- |
|
15 |
$cheminBiblio = $cheminBase.'bibliotheque/';
|
- |
|
16 |
$cheminModule = $cheminBase.'modules/resultat/';
|
- |
|
17 |
$cheminModuleFormateurs = $cheminModule.'formateurs/';
|
- |
|
18 |
$chemins = array($cheminBiblio, $cheminModule, $cheminModuleFormateurs);
|
- |
|
19 |
foreach ($chemins as $chemin) {
|
- |
|
20 |
$chemin = $chemin.$classe.'.php';
|
- |
|
21 |
if (file_exists($chemin)) {
|
- |
|
22 |
require_once $chemin;
|
- |
|
23 |
}
|
- |
|
24 |
}
|
9 |
const TPL_URL_FICHE = 'http://localhost/eflore/eflore-consultation/index_botanique.php?referentiel=bdtfx&module=fiche&action=fiche&nn=%s';
|
25 |
}
|
10 |
|
26 |
|
11 |
protected function getParametres($type, $masque) {
|
27 |
protected function getParametres($type, $masque) {
|
12 |
$parametres = new ParametresResultats();
|
28 |
$parametres = new ParametresResultats();
|
13 |
$parametres->type = $type;
|
29 |
$parametres->type = $type;
|