14,6 → 14,7 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL |
* @version $Id$ |
*/ |
|
abstract class ServiceEflorePhpUnit extends PHPUnit_Framework_TestCase { |
|
/** Définir la valeur de cet attribut dans le constructeur de la classe de test.*/ |
49,20 → 50,22 |
} |
|
private static function chargerFramework() { |
$cheminRacine = realpath(dirname(__FILE__).'/../..').'/'; |
$framework = $cheminRacine.'framework.php'; |
if (!file_exists($framework)) { |
$e = "Veuillez paramétrer l'emplacement et la version du Framework dans le fichier $framework"; |
trigger_error($e, E_USER_ERROR); |
} else { |
// Inclusion du Framework |
require_once $framework; |
static $cheminRacine; |
if(!$cheminRacine) { |
$cheminRacine = realpath(dirname(__FILE__).'/../..').'/'; |
$framework = $cheminRacine.'framework.php'; |
if (!file_exists($framework)) { |
$e = "Veuillez paramétrer l'emplacement et la version du Framework dans le fichier $framework"; |
trigger_error($e, E_USER_ERROR); |
} else { |
// Inclusion du Framework |
require_once $framework; |
// Ajout d'information concernant cette application |
Framework::setCheminAppli($cheminRacine);// Obligatoire |
} |
} |
} |
|
// Ajout d'information concernant cette application |
Framework::setCheminAppli($cheminRacine);// Obligatoire |
} |
} |
|
//+------------------------------------------------------------------------------------------------------+ |
// Refactorisation |
public function consulterJson($service, $projet, $ressources, $parametres = NULL) { |