- [x] [phpunit/sessionManager] test unitaires du manager de session php

This commit is contained in:
xdrm-brackets 2016-02-13 17:28:28 +01:00
parent d5f0297c3a
commit f200d254a0
16 changed files with 769 additions and 347 deletions

View File

@ -41,18 +41,24 @@
// Erreur de parametre(s)
const ParamError = 9;
// Erreur dans le traitement
const ModuleError = 10;
/* Repo */
// Verification de la coherence du chemin (existe dans la conf)
const WrongPathRepo = 10;
const WrongPathRepo = 11;
// Module non specifie dans la conf
const UnknownRepo = 11;
const UnknownRepo = 12;
// Erreur dans le traitement
const RepoError = 13;
/* Database */
// Erreur lors de la creation d'un objet PDO (connection)
const PDOConnection = 12;
const PDOConnection = 14;
/* EXPLICITE UN CODE D'ERREUR
@ -65,7 +71,9 @@
public static function explicit($error){
switch($error){
case self::Success: return "Tout s'est bien deroule"; break;
case self::ParsingFailed: return "La lecture du fichier JSON a echoue"; break;
case self::InvalidFlags: return "Les specifications (drapeaux) sont incorrects"; break;
case self::UnreachableResource: return "La ressource n'existe pas (404)"; break;
case self::MissingPath: return "Le chemin de delegation n'a pas ete renseigne"; break;
@ -75,13 +83,18 @@
case self::UnknownRepo: return "Le repo n'existe pas"; break;
case self::UnknownMethod: return "Le methode n'existe pas"; break;
case self::UncallableMethod: return "Le methode n'est pas amorcable"; break;
case self::ParamError: return "Un ou plusieurs parametres sont manquants ou incorrects"; break;
case self::ModuleError: return "Erreur lors du traitement du module"; break;
case self::RepoError: return "Erreur lors du traitement du repo"; break;
case self::PDOConnection: return "La connexion avec la base de donnees a echoue"; break;
default: return "Erreur inconnue..."; break;
// default: return "Erreur inconnue..."; break;
}
return 'Aucune erreur trouvee';
// Erreur inconnue
return null;
}
}

View File

@ -52,10 +52,41 @@
return array('ModuleError' => \manager\ManagerError::ParamError);
// $request = new \manager\Repo('user/create', array($code, $username, $firstname, $lastname, $mail, $password, $status) );
/* [2] Creation de l'utilisateur
=========================================================*/
$create_user = new \manager\Repo('user/create', array($code, $username, $firstname, $lastname, $mail, $password_hash, $status) );
$id_user = $create_user->answer();
// return $request->answer();
return array('ModuleError' => \manager\ManagerError::Success);
// Si une erreur est retournee, on retourne une erreur
if( $id_user === false )
return array('ModuleError' => \manager\ManagerError::ModuleError);
/* [3] Creation du groupe de meme nom que l'username
=========================================================*/
$create_group = new \manager\Repo('group/create', array($username) );
$id_group = $create_group->answer();
// Si une erreur est retournee, on retourne une erreur
if( $id_group === false )
return array('ModuleError' => \manager\ManagerError::ModuleError);
/* [4] Association au groupe
=========================================================*/
$assoc_goup = new \manager\Repo('group/associate', array($id_user, $id_group));
$id_assoc = $assoc_goup->answer();
// Si une erreur est retournee, on retourne une erreur
if( $id_assoc === false )
return array('ModuleError' => \manager\ManagerError::ModuleError);
/* [5] Gestion du retour
=========================================================*/
return array(
'ModuleError' => \manager\ManagerError::Success,
'id_user' => $id_user
);
}

View File

@ -220,47 +220,47 @@
<tr><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"> public function __construct($host, $dbname, $username, $password){</td></tr>
<tr class="success popin" data-title="4 tests cover line 28" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"> $this-&gt;host = $host;</td></tr>
<tr class="success popin" data-title="4 tests cover line 29" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"> $this-&gt;dbname = $dbname;</td></tr>
<tr class="success popin" data-title="4 tests cover line 30" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"> $this-&gt;username = $username;</td></tr>
<tr class="success popin" data-title="4 tests cover line 31" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"> $this-&gt;password = $password;</td></tr>
<tr class="success popin" data-title="4 tests cover line 28" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"> $this-&gt;host = $host;</td></tr>
<tr class="success popin" data-title="4 tests cover line 29" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"> $this-&gt;dbname = $dbname;</td></tr>
<tr class="success popin" data-title="4 tests cover line 30" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"> $this-&gt;username = $username;</td></tr>
<tr class="success popin" data-title="4 tests cover line 31" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"> $this-&gt;password = $password;</td></tr>
<tr><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"> try{</td></tr>
<tr class="success popin" data-title="4 tests cover line 34" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"> self::$pdo = new \PDO('mysql:host='.$this-&gt;host.';dbname='.$this-&gt;dbname, $this-&gt;username, $this-&gt;password);</td></tr>
<tr class="success popin" data-title="4 tests cover line 34" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"> self::$pdo = new \PDO('mysql:host='.$this-&gt;host.';dbname='.$this-&gt;dbname, $this-&gt;username, $this-&gt;password);</td></tr>
<tr><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"> // On signale que tout s'est bien passe</td></tr>
<tr class="success popin" data-title="4 tests cover line 37" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"> self::$error = \manager\ManagerError::Success;</td></tr>
<tr class="success popin" data-title="4 tests cover line 37" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"> self::$error = \manager\ManagerError::Success;</td></tr>
<tr><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="4 tests cover line 39" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"> }catch(Exception $e){</td></tr>
<tr class="success popin" data-title="4 tests cover line 39" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"> }catch(Exception $e){</td></tr>
<tr><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"> // On signale qu'il y a une erreur</td></tr>
<tr class="danger"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"> self::$error = \manager\ManagerError::PDOConnection;</td></tr>
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"> }</td></tr>
<tr class="success popin" data-title="4 tests cover line 43" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"> }</td></tr>
<tr class="success popin" data-title="4 tests cover line 43" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"> /* retourne une instance de la classe */</td></tr>
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"> public static function getInstance(){</td></tr>
<tr class="success popin" data-title="5 tests cover line 48" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testPDO&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"> if( self::$instance == null || self::$error != \manager\ManagerError::Success ){ // Si aucune instance existante OU erreur de connection</td></tr>
<tr class="success popin" data-title="5 tests cover line 48" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testPDO&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"> if( self::$instance == null || self::$error != \manager\ManagerError::Success ){ // Si aucune instance existante OU erreur de connection</td></tr>
<tr><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"> // chargement de la configuration du server SQL</td></tr>
<tr class="success popin" data-title="4 tests cover line 51" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"> if( !isset($_SERVER['HTTP_HOST']) || isset($_SERVER['HTTP_HOST']) &amp;&amp; $_SERVER['HTTP_HOST'] == 'stefproject' )</td></tr>
<tr class="success popin" data-title="4 tests cover line 52" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"> $conf = json_decode( ResourceDispatcher::getResource(self::$config_path['local']), true );</td></tr>
<tr class="success popin" data-title="4 tests cover line 51" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"> if( !isset($_SERVER['HTTP_HOST']) || isset($_SERVER['HTTP_HOST']) &amp;&amp; $_SERVER['HTTP_HOST'] == 'stefproject' )</td></tr>
<tr class="success popin" data-title="4 tests cover line 52" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"> $conf = json_decode( ResourceDispatcher::getResource(self::$config_path['local']), true );</td></tr>
<tr><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"> else</td></tr>
<tr class="danger"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"> $conf = json_decode( ResourceDispatcher::getResource(self::$config_path['remote']), true );</td></tr>
<tr><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"> // creation de l'instance en fonction des parametres</td></tr>
<tr class="success popin" data-title="4 tests cover line 57" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"> self::$instance = new DataBase($conf['host'], $conf['dbname'], $conf['user'], $conf['password']);</td></tr>
<tr class="success popin" data-title="4 tests cover line 57" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"> self::$instance = new DataBase($conf['host'], $conf['dbname'], $conf['user'], $conf['password']);</td></tr>
<tr><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="4 tests cover line 59" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"> }</td></tr>
<tr class="success popin" data-title="4 tests cover line 59" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="5 tests cover line 61" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testPDO&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"> return self::$instance;</td></tr>
<tr class="success popin" data-title="5 tests cover line 61" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testPDO&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"> return self::$instance;</td></tr>
<tr><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"> /* retourne la connection statique */</td></tr>
<tr><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"> public static function getPDO(){</td></tr>
<tr class="success popin" data-title="1 test covers line 66" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testPDO&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"> $instance = self::getInstance();</td></tr>
<tr class="success popin" data-title="1 test covers line 66" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testPDO&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"> $instance = self::getInstance();</td></tr>
<tr><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="1 test covers line 68" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testPDO&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"> return self::$pdo;</td></tr>
<tr class="success popin" data-title="1 test covers line 68" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testPDO&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"> return self::$pdo;</td></tr>
<tr><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"></td></tr>
@ -273,9 +273,9 @@
<tr><td><div align="right"><a name="78"></a><a href="#78">78</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="79"></a><a href="#79">79</a></div></td><td class="codeLine"> public function getConfig(){</td></tr>
<tr><td><div align="right"><a name="80"></a><a href="#80">80</a></div></td><td class="codeLine"> return array(</td></tr>
<tr class="success popin" data-title="2 tests cover line 81" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="81"></a><a href="#81">81</a></div></td><td class="codeLine"> 'host' =&gt; $this-&gt;host,</td></tr>
<tr class="success popin" data-title="2 tests cover line 82" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"> 'username' =&gt; $this-&gt;username</td></tr>
<tr class="success popin" data-title="2 tests cover line 83" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="83"></a><a href="#83">83</a></div></td><td class="codeLine"> );</td></tr>
<tr class="success popin" data-title="2 tests cover line 81" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="81"></a><a href="#81">81</a></div></td><td class="codeLine"> 'host' =&gt; $this-&gt;host,</td></tr>
<tr class="success popin" data-title="2 tests cover line 82" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"> 'username' =&gt; $this-&gt;username</td></tr>
<tr class="success popin" data-title="2 tests cover line 83" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="83"></a><a href="#83">83</a></div></td><td class="codeLine"> );</td></tr>
<tr><td><div align="right"><a name="84"></a><a href="#84">84</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="85"></a><a href="#85">85</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="86"></a><a href="#86">86</a></div></td><td class="codeLine"></td></tr>
@ -303,54 +303,54 @@
<tr><td><div align="right"><a name="108"></a><a href="#108">108</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="109"></a><a href="#109">109</a></div></td><td class="codeLine"> */</td></tr>
<tr><td><div align="right"><a name="110"></a><a href="#110">110</a></div></td><td class="codeLine"> public static function delNumeric($fetchData, $oneDimension=false){</td></tr>
<tr class="success popin" data-title="4 tests cover line 111" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="111"></a><a href="#111">111</a></div></td><td class="codeLine"> $nextEquivalent = false; // Vaut VRAI si le prochain est peut-etre un equivalent numerique</td></tr>
<tr class="success popin" data-title="4 tests cover line 111" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="111"></a><a href="#111">111</a></div></td><td class="codeLine"> $nextEquivalent = false; // Vaut VRAI si le prochain est peut-etre un equivalent numerique</td></tr>
<tr><td><div align="right"><a name="112"></a><a href="#112">112</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="113"></a><a href="#113">113</a></div></td><td class="codeLine"> /* [1] 2 dimensions</td></tr>
<tr><td><div align="right"><a name="114"></a><a href="#114">114</a></div></td><td class="codeLine"> ===============================================*/</td></tr>
<tr class="success popin" data-title="4 tests cover line 115" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="115"></a><a href="#115">115</a></div></td><td class="codeLine"> if( !$oneDimension &amp;&amp; is_array($fetchData[0]) ){</td></tr>
<tr class="success popin" data-title="4 tests cover line 115" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="115"></a><a href="#115">115</a></div></td><td class="codeLine"> if( !$oneDimension &amp;&amp; is_array($fetchData[0]) ){</td></tr>
<tr><td><div align="right"><a name="116"></a><a href="#116">116</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="117"></a><a href="#117">117</a></div></td><td class="codeLine"> // on supprime les doublons des entrées (indice numérique)</td></tr>
<tr class="success popin" data-title="2 tests cover line 118" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="118"></a><a href="#118">118</a></div></td><td class="codeLine"> for( $i = 0 ; $i &lt; count($fetchData) ; $i++ ) // pour tout les utilisateurs</td></tr>
<tr class="success popin" data-title="2 tests cover line 119" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="119"></a><a href="#119">119</a></div></td><td class="codeLine"> foreach($fetchData[$i] as $col =&gt; $val){ // pour toutes les entrées</td></tr>
<tr class="success popin" data-title="2 tests cover line 118" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="118"></a><a href="#118">118</a></div></td><td class="codeLine"> for( $i = 0 ; $i &lt; count($fetchData) ; $i++ ) // pour tout les utilisateurs</td></tr>
<tr class="success popin" data-title="2 tests cover line 119" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="119"></a><a href="#119">119</a></div></td><td class="codeLine"> foreach($fetchData[$i] as $col =&gt; $val){ // pour toutes les entrées</td></tr>
<tr><td><div align="right"><a name="120"></a><a href="#120">120</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 121" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="121"></a><a href="#121">121</a></div></td><td class="codeLine"> if( !mb_detect_encoding($val, 'UTF-8') )</td></tr>
<tr class="success popin" data-title="2 tests cover line 122" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="122"></a><a href="#122">122</a></div></td><td class="codeLine"> $fetchData[$i][$col] = utf8_encode($val);</td></tr>
<tr class="success popin" data-title="2 tests cover line 121" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="121"></a><a href="#121">121</a></div></td><td class="codeLine"> if( !mb_detect_encoding($val, 'UTF-8') )</td></tr>
<tr class="success popin" data-title="2 tests cover line 122" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="122"></a><a href="#122">122</a></div></td><td class="codeLine"> $fetchData[$i][$col] = utf8_encode($val);</td></tr>
<tr><td><div align="right"><a name="123"></a><a href="#123">123</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 124" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="124"></a><a href="#124">124</a></div></td><td class="codeLine"> if( is_int($col) ){ // Si indice numerique</td></tr>
<tr class="success popin" data-title="2 tests cover line 124" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="124"></a><a href="#124">124</a></div></td><td class="codeLine"> if( is_int($col) ){ // Si indice numerique</td></tr>
<tr><td><div align="right"><a name="125"></a><a href="#125">125</a></div></td><td class="codeLine"> if( $nextEquivalent ) // Si suit un indice textuel</td></tr>
<tr class="success popin" data-title="2 tests cover line 126" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="126"></a><a href="#126">126</a></div></td><td class="codeLine"> unset( $fetchData[$i][$col] ); // on supprime l'indice</td></tr>
<tr class="success popin" data-title="2 tests cover line 126" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="126"></a><a href="#126">126</a></div></td><td class="codeLine"> unset( $fetchData[$i][$col] ); // on supprime l'indice</td></tr>
<tr><td><div align="right"><a name="127"></a><a href="#127">127</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 128" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="128"></a><a href="#128">128</a></div></td><td class="codeLine"> $nextEquivalent = false; // Dans tous les cas, on dit que le prochain ne pourra pas etre supprime si numerique</td></tr>
<tr class="success popin" data-title="2 tests cover line 128" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="128"></a><a href="#128">128</a></div></td><td class="codeLine"> $nextEquivalent = false; // Dans tous les cas, on dit que le prochain ne pourra pas etre supprime si numerique</td></tr>
<tr><td><div align="right"><a name="129"></a><a href="#129">129</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 130" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="130"></a><a href="#130">130</a></div></td><td class="codeLine"> }else // Si l'indice n'est pas un entier</td></tr>
<tr class="success popin" data-title="2 tests cover line 131" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="131"></a><a href="#131">131</a></div></td><td class="codeLine"> $nextEquivalent = true; // On signale qu'il y aura peut etre un indice numerique suivant</td></tr>
<tr class="success popin" data-title="2 tests cover line 130" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="130"></a><a href="#130">130</a></div></td><td class="codeLine"> }else // Si l'indice n'est pas un entier</td></tr>
<tr class="success popin" data-title="2 tests cover line 131" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="131"></a><a href="#131">131</a></div></td><td class="codeLine"> $nextEquivalent = true; // On signale qu'il y aura peut etre un indice numerique suivant</td></tr>
<tr><td><div align="right"><a name="132"></a><a href="#132">132</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 133" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="133"></a><a href="#133">133</a></div></td><td class="codeLine"> }</td></tr>
<tr class="success popin" data-title="2 tests cover line 133" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="133"></a><a href="#133">133</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="134"></a><a href="#134">134</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="135"></a><a href="#135">135</a></div></td><td class="codeLine"> /* [2] 1 dimensions</td></tr>
<tr><td><div align="right"><a name="136"></a><a href="#136">136</a></div></td><td class="codeLine"> ===============================================*/</td></tr>
<tr class="success popin" data-title="2 tests cover line 137" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="137"></a><a href="#137">137</a></div></td><td class="codeLine"> }else{</td></tr>
<tr class="success popin" data-title="2 tests cover line 137" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="137"></a><a href="#137">137</a></div></td><td class="codeLine"> }else{</td></tr>
<tr><td><div align="right"><a name="138"></a><a href="#138">138</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="139"></a><a href="#139">139</a></div></td><td class="codeLine"> // on supprime les doublons des entrées (indice numérique)</td></tr>
<tr class="success popin" data-title="2 tests cover line 140" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="140"></a><a href="#140">140</a></div></td><td class="codeLine"> foreach($fetchData as $i=&gt;$val){ // pour toutes les entrées</td></tr>
<tr class="success popin" data-title="2 tests cover line 140" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="140"></a><a href="#140">140</a></div></td><td class="codeLine"> foreach($fetchData as $i=&gt;$val){ // pour toutes les entrées</td></tr>
<tr><td><div align="right"><a name="141"></a><a href="#141">141</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 142" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="142"></a><a href="#142">142</a></div></td><td class="codeLine"> if( !mb_detect_encoding($val, 'UTF-8') )</td></tr>
<tr class="success popin" data-title="2 tests cover line 143" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="143"></a><a href="#143">143</a></div></td><td class="codeLine"> $fetchData[$i] = utf8_encode($val);</td></tr>
<tr class="success popin" data-title="2 tests cover line 142" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="142"></a><a href="#142">142</a></div></td><td class="codeLine"> if( !mb_detect_encoding($val, 'UTF-8') )</td></tr>
<tr class="success popin" data-title="2 tests cover line 143" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="143"></a><a href="#143">143</a></div></td><td class="codeLine"> $fetchData[$i] = utf8_encode($val);</td></tr>
<tr><td><div align="right"><a name="144"></a><a href="#144">144</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 145" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="145"></a><a href="#145">145</a></div></td><td class="codeLine"> if( is_int($i) ){ // Si indice numerique</td></tr>
<tr class="success popin" data-title="2 tests cover line 145" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="145"></a><a href="#145">145</a></div></td><td class="codeLine"> if( is_int($i) ){ // Si indice numerique</td></tr>
<tr><td><div align="right"><a name="146"></a><a href="#146">146</a></div></td><td class="codeLine"> if( $nextEquivalent ) // Si suit un indice textuel</td></tr>
<tr class="success popin" data-title="2 tests cover line 147" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="147"></a><a href="#147">147</a></div></td><td class="codeLine"> unset( $fetchData[$i] ); // on supprime l'indice</td></tr>
<tr class="success popin" data-title="2 tests cover line 147" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="147"></a><a href="#147">147</a></div></td><td class="codeLine"> unset( $fetchData[$i] ); // on supprime l'indice</td></tr>
<tr><td><div align="right"><a name="148"></a><a href="#148">148</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 149" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="149"></a><a href="#149">149</a></div></td><td class="codeLine"> $nextEquivalent = false; // Dans tous les cas, on dit que le prochain ne pourra pas etre supprime si numerique</td></tr>
<tr class="success popin" data-title="2 tests cover line 149" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="149"></a><a href="#149">149</a></div></td><td class="codeLine"> $nextEquivalent = false; // Dans tous les cas, on dit que le prochain ne pourra pas etre supprime si numerique</td></tr>
<tr><td><div align="right"><a name="150"></a><a href="#150">150</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 151" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="151"></a><a href="#151">151</a></div></td><td class="codeLine"> }else // Si l'indice n'est pas un entier</td></tr>
<tr class="success popin" data-title="2 tests cover line 152" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="152"></a><a href="#152">152</a></div></td><td class="codeLine"> $nextEquivalent = true; // On signale qu'il y aura peut etre un indice numerique suivant</td></tr>
<tr class="success popin" data-title="2 tests cover line 151" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="151"></a><a href="#151">151</a></div></td><td class="codeLine"> }else // Si l'indice n'est pas un entier</td></tr>
<tr class="success popin" data-title="2 tests cover line 152" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="152"></a><a href="#152">152</a></div></td><td class="codeLine"> $nextEquivalent = true; // On signale qu'il y aura peut etre un indice numerique suivant</td></tr>
<tr><td><div align="right"><a name="153"></a><a href="#153">153</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 154" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="154"></a><a href="#154">154</a></div></td><td class="codeLine"> }</td></tr>
<tr class="success popin" data-title="2 tests cover line 154" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="154"></a><a href="#154">154</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="155"></a><a href="#155">155</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="156"></a><a href="#156">156</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="157"></a><a href="#157">157</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="4 tests cover line 158" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="158"></a><a href="#158">158</a></div></td><td class="codeLine"> return $fetchData;</td></tr>
<tr class="success popin" data-title="4 tests cover line 158" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2DimWithNumericIndexes&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal1DimWithNumericIndexes&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="158"></a><a href="#158">158</a></div></td><td class="codeLine"> return $fetchData;</td></tr>
<tr><td><div align="right"><a name="159"></a><a href="#159">159</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="160"></a><a href="#160">160</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="161"></a><a href="#161">161</a></div></td><td class="codeLine"></td></tr>
@ -374,41 +374,41 @@
<tr><td><div align="right"><a name="179"></a><a href="#179">179</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="180"></a><a href="#180">180</a></div></td><td class="codeLine"> */</td></tr>
<tr><td><div align="right"><a name="181"></a><a href="#181">181</a></div></td><td class="codeLine"> public static function check($type, $value){</td></tr>
<tr class="success popin" data-title="47 tests cover line 182" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeSupStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeGtSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeGtSupStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="182"></a><a href="#182">182</a></div></td><td class="codeLine"> $checker = !is_null($value);</td></tr>
<tr class="success popin" data-title="47 tests cover line 182" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeSupStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeGtSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeGtSupStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="182"></a><a href="#182">182</a></div></td><td class="codeLine"> $checker = !is_null($value);</td></tr>
<tr><td><div align="right"><a name="183"></a><a href="#183">183</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="184"></a><a href="#184">184</a></div></td><td class="codeLine"> switch($type){</td></tr>
<tr><td><div align="right"><a name="185"></a><a href="#185">185</a></div></td><td class="codeLine"> /* (1) Global */</td></tr>
<tr class="success popin" data-title="47 tests cover line 186" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeSupStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeGtSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeGtSupStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="186"></a><a href="#186">186</a></div></td><td class="codeLine"> case 'auto_increment_id':</td></tr>
<tr class="success popin" data-title="8 tests cover line 187" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeSupStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeGtSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeGtSupStringIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="187"></a><a href="#187">187</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_numeric($value) &amp;&amp; $value &lt;= 2147483647 &amp;&amp; $value &gt;= -2147483647;</td></tr>
<tr class="success popin" data-title="47 tests cover line 186" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeSupStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeGtSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeGtSupStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="186"></a><a href="#186">186</a></div></td><td class="codeLine"> case 'auto_increment_id':</td></tr>
<tr class="success popin" data-title="8 tests cover line 187" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeSupStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeGtSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeGtSupStringIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="187"></a><a href="#187">187</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_numeric($value) &amp;&amp; $value &lt;= 2147483647 &amp;&amp; $value &gt;= -2147483647;</td></tr>
<tr><td><div align="right"><a name="188"></a><a href="#188">188</a></div></td><td class="codeLine"> break;</td></tr>
<tr><td><div align="right"><a name="189"></a><a href="#189">189</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="190"></a><a href="#190">190</a></div></td><td class="codeLine"> /* (2) Utilisateur */</td></tr>
<tr class="success popin" data-title="39 tests cover line 191" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="191"></a><a href="#191">191</a></div></td><td class="codeLine"> case 'user.code':</td></tr>
<tr class="success popin" data-title="39 tests cover line 192" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="192"></a><a href="#192">192</a></div></td><td class="codeLine"> case 'machine.code':</td></tr>
<tr class="success popin" data-title="5 tests cover line 193" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="193"></a><a href="#193">193</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; preg_match('/^[\dA-F]{2}(\-[\dA-F]{2}){3,5}$/i', $value);</td></tr>
<tr class="success popin" data-title="39 tests cover line 191" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="191"></a><a href="#191">191</a></div></td><td class="codeLine"> case 'user.code':</td></tr>
<tr class="success popin" data-title="39 tests cover line 192" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="192"></a><a href="#192">192</a></div></td><td class="codeLine"> case 'machine.code':</td></tr>
<tr class="success popin" data-title="5 tests cover line 193" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize4WrongCharacter&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSizeGreaterThan6&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUserCodeSize6WrongCharacter&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="193"></a><a href="#193">193</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; preg_match('/^[\dA-F]{2}(\-[\dA-F]{2}){3,5}$/i', $value);</td></tr>
<tr><td><div align="right"><a name="194"></a><a href="#194">194</a></div></td><td class="codeLine"> break;</td></tr>
<tr><td><div align="right"><a name="195"></a><a href="#195">195</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="34 tests cover line 196" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="196"></a><a href="#196">196</a></div></td><td class="codeLine"> case 'user.username':</td></tr>
<tr class="success popin" data-title="34 tests cover line 197" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="197"></a><a href="#197">197</a></div></td><td class="codeLine"> case 'machine.name':</td></tr>
<tr class="success popin" data-title="34 tests cover line 198" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="198"></a><a href="#198">198</a></div></td><td class="codeLine"> case 'group.name':</td></tr>
<tr class="success popin" data-title="8 tests cover line 199" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="199"></a><a href="#199">199</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; preg_match('/^[\w-]{1,30}$/i', $value);</td></tr>
<tr class="success popin" data-title="34 tests cover line 196" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="196"></a><a href="#196">196</a></div></td><td class="codeLine"> case 'user.username':</td></tr>
<tr class="success popin" data-title="34 tests cover line 197" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="197"></a><a href="#197">197</a></div></td><td class="codeLine"> case 'machine.name':</td></tr>
<tr class="success popin" data-title="34 tests cover line 198" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="198"></a><a href="#198">198</a></div></td><td class="codeLine"> case 'group.name':</td></tr>
<tr class="success popin" data-title="8 tests cover line 199" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="199"></a><a href="#199">199</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; preg_match('/^[\w-]{1,30}$/i', $value);</td></tr>
<tr><td><div align="right"><a name="200"></a><a href="#200">200</a></div></td><td class="codeLine"> break;</td></tr>
<tr><td><div align="right"><a name="201"></a><a href="#201">201</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="26 tests cover line 202" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="202"></a><a href="#202">202</a></div></td><td class="codeLine"> case 'user.firstname':</td></tr>
<tr class="success popin" data-title="26 tests cover line 203" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="203"></a><a href="#203">203</a></div></td><td class="codeLine"> case 'user.lastname':</td></tr>
<tr class="success popin" data-title="8 tests cover line 204" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="204"></a><a href="#204">204</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; preg_match('/^[a-z -]{3,30}$/i', $value);</td></tr>
<tr class="success popin" data-title="26 tests cover line 202" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="202"></a><a href="#202">202</a></div></td><td class="codeLine"> case 'user.firstname':</td></tr>
<tr class="success popin" data-title="26 tests cover line 203" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="203"></a><a href="#203">203</a></div></td><td class="codeLine"> case 'user.lastname':</td></tr>
<tr class="success popin" data-title="8 tests cover line 204" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSize30Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testFirstnameSizeGt30Incorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="204"></a><a href="#204">204</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; preg_match('/^[a-z -]{3,30}$/i', $value);</td></tr>
<tr><td><div align="right"><a name="205"></a><a href="#205">205</a></div></td><td class="codeLine"> break;</td></tr>
<tr><td><div align="right"><a name="206"></a><a href="#206">206</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="18 tests cover line 207" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="207"></a><a href="#207">207</a></div></td><td class="codeLine"> case 'user.mail':</td></tr>
<tr class="success popin" data-title="5 tests cover line 208" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="208"></a><a href="#208">208</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; strlen($value) &lt;= 50 &amp;&amp; preg_match('/^[\w\.-]+@[\w\.-]+\.[a-z]{2,4}$/i', $value);</td></tr>
<tr class="success popin" data-title="18 tests cover line 207" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="207"></a><a href="#207">207</a></div></td><td class="codeLine"> case 'user.mail':</td></tr>
<tr class="success popin" data-title="5 tests cover line 208" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailContentIncorrect2&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="208"></a><a href="#208">208</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; strlen($value) &lt;= 50 &amp;&amp; preg_match('/^[\w\.-]+@[\w\.-]+\.[a-z]{2,4}$/i', $value);</td></tr>
<tr><td><div align="right"><a name="209"></a><a href="#209">209</a></div></td><td class="codeLine"> break;</td></tr>
<tr><td><div align="right"><a name="210"></a><a href="#210">210</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="13 tests cover line 211" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="211"></a><a href="#211">211</a></div></td><td class="codeLine"> case 'user.password':</td></tr>
<tr class="success popin" data-title="5 tests cover line 212" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="212"></a><a href="#212">212</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; preg_match('/^[\da-f]{40}$/i', $value);</td></tr>
<tr class="success popin" data-title="13 tests cover line 211" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="211"></a><a href="#211">211</a></div></td><td class="codeLine"> case 'user.password':</td></tr>
<tr class="success popin" data-title="5 tests cover line 212" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="212"></a><a href="#212">212</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_string($value) &amp;&amp; preg_match('/^[\da-f]{40}$/i', $value);</td></tr>
<tr><td><div align="right"><a name="213"></a><a href="#213">213</a></div></td><td class="codeLine"> break;</td></tr>
<tr><td><div align="right"><a name="214"></a><a href="#214">214</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="8 tests cover line 215" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="215"></a><a href="#215">215</a></div></td><td class="codeLine"> case 'user.status':</td></tr>
<tr class="success popin" data-title="8 tests cover line 216" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="216"></a><a href="#216">216</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_numeric($value) &amp;&amp; floor($value) == $value &amp;&amp; $value &gt;= 0 &amp;&amp; $value &lt;= 100;</td></tr>
<tr class="success popin" data-title="8 tests cover line 215" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="215"></a><a href="#215">215</a></div></td><td class="codeLine"> case 'user.status':</td></tr>
<tr class="success popin" data-title="8 tests cover line 216" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeIntIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusTypeStringIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testStatusSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="216"></a><a href="#216">216</a></div></td><td class="codeLine"> return $checker &amp;&amp; is_numeric($value) &amp;&amp; floor($value) == $value &amp;&amp; $value &gt;= 0 &amp;&amp; $value &lt;= 100;</td></tr>
<tr><td><div align="right"><a name="217"></a><a href="#217">217</a></div></td><td class="codeLine"> break;</td></tr>
<tr><td><div align="right"><a name="218"></a><a href="#218">218</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="219"></a><a href="#219">219</a></div></td><td class="codeLine"> }</td></tr>
@ -431,7 +431,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Fri Feb 12 23:40:08 CET 2016.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Sat Feb 13 17:24:32 CET 2016.</small>
</p>
</footer>
</div>

View File

@ -41,66 +41,66 @@
</thead>
<tbody>
<tr>
<td class="danger">Total</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success">Total</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;14</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">16&nbsp;/&nbsp;16</div></td>
</tr>
<tr>
<td class="danger">ManagerError</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success">ManagerError</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">182</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">16</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;14</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">16&nbsp;/&nbsp;16</div></td>
</tr>
<tr>
<td class="danger" colspan="4">&nbsp;<a href="#62">explicit($error)</a></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success" colspan="4">&nbsp;<a href="#71">explicit($error)</a></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">182</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">16</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;14</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">16&nbsp;/&nbsp;16</div></td>
</tr>
@ -148,50 +148,67 @@
<tr><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"> // Methode inamorcable</td></tr>
<tr><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"> const UncallableMethod = 8;</td></tr>
<tr><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"> /* Repo */</td></tr>
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"> // Verification de la coherence du chemin (existe dans la conf)</td></tr>
<tr><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"> const WrongPathRepo = 9;</td></tr>
<tr><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"> // Module non specifie dans la conf</td></tr>
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"> const UnknownRepo = 10;</td></tr>
<tr><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"> // Erreur de parametre(s)</td></tr>
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"> const ParamError = 9;</td></tr>
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"> // Erreur dans le traitement</td></tr>
<tr><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"> const ModuleError = 10;</td></tr>
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"> /* Repo */</td></tr>
<tr><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"> /* Database */</td></tr>
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"> // Erreur lors de la creation d'un objet PDO (connection)</td></tr>
<tr><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"> const PDOConnection = 11;</td></tr>
<tr><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"> // Verification de la coherence du chemin (existe dans la conf)</td></tr>
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"> const WrongPathRepo = 11;</td></tr>
<tr><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"> // Module non specifie dans la conf</td></tr>
<tr><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"> const UnknownRepo = 12;</td></tr>
<tr><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"> /* EXPLICITE UN CODE D'ERREUR</td></tr>
<tr><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"> * @error&lt;Integer&gt; Code d'erreur</td></tr>
<tr><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"> * @return explicit&lt;String&gt; Description explicite du code d'erreur</td></tr>
<tr><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"> */</td></tr>
<tr><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"> public static function explicit($error){</td></tr>
<tr><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"> switch($error){</td></tr>
<tr class="danger"><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"> case self::Success: return &quot;Tout s'est bien deroule&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"> case self::ParsingFailed: return &quot;La lecture du fichier JSON a echoue&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"> case self::InvalidFlags: return &quot;Les specifications (drapeaux) sont incorrects&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"> case self::UnreachableResource: return &quot;La ressource n'existe pas (404)&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"> case self::MissingPath: return &quot;Le chemin de delegation n'a pas ete renseigne&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"> case self::WrongPathModule: return &quot;Le chemin de delegation est incorrect ('nomModule/nomMethode')&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"> case self::WrongPathRepo: return &quot;Le chemin de delegation est incorrect ('nomRepo/nomMethode')&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"> case self::UnknownModule: return &quot;Le module n'existe pas&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"> case self::UnknownRepo: return &quot;Le repo n'existe pas&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="73"></a><a href="#73">73</a></div></td><td class="codeLine"> case self::UnknownMethod: return &quot;Le methode n'existe pas&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"> case self::UncallableMethod: return &quot;Le methode n'est pas amorcable&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="75"></a><a href="#75">75</a></div></td><td class="codeLine"> case self::PDOConnection: return &quot;La connexion avec la base de donnees a echoue&quot;; break;</td></tr>
<tr><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"> // Erreur dans le traitement</td></tr>
<tr><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"> const RepoError = 13;</td></tr>
<tr><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"> /* Database */</td></tr>
<tr><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"> // Erreur lors de la creation d'un objet PDO (connection)</td></tr>
<tr><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"> const PDOConnection = 14;</td></tr>
<tr><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"> /* EXPLICITE UN CODE D'ERREUR</td></tr>
<tr><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"> * @error&lt;Integer&gt; Code d'erreur</td></tr>
<tr><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"> * @return explicit&lt;String&gt; Description explicite du code d'erreur</td></tr>
<tr><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"> */</td></tr>
<tr><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"> public static function explicit($error){</td></tr>
<tr><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"> switch($error){</td></tr>
<tr class="success popin" data-title="16 tests cover line 73" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorSuccess&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParsingFailed&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorInvalidFlags&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnreachableResource&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorMissingPath&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="73"></a><a href="#73">73</a></div></td><td class="codeLine"> case self::Success: return &quot;Tout s'est bien deroule&quot;; break;</td></tr>
<tr><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="15 tests cover line 75" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParsingFailed&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorInvalidFlags&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnreachableResource&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorMissingPath&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="75"></a><a href="#75">75</a></div></td><td class="codeLine"> case self::ParsingFailed: return &quot;La lecture du fichier JSON a echoue&quot;; break;</td></tr>
<tr><td><div align="right"><a name="76"></a><a href="#76">76</a></div></td><td class="codeLine"></td></tr>
<tr class="danger"><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"> default: return &quot;Erreur inconnue...&quot;; break;</td></tr>
<tr class="danger"><td><div align="right"><a name="78"></a><a href="#78">78</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="79"></a><a href="#79">79</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="80"></a><a href="#80">80</a></div></td><td class="codeLine"> return 'Aucune erreur trouvee';</td></tr>
<tr><td><div align="right"><a name="81"></a><a href="#81">81</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="83"></a><a href="#83">83</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="84"></a><a href="#84">84</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="14 tests cover line 77" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorInvalidFlags&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnreachableResource&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorMissingPath&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"> case self::InvalidFlags: return &quot;Les specifications (drapeaux) sont incorrects&quot;; break;</td></tr>
<tr class="success popin" data-title="13 tests cover line 78" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnreachableResource&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorMissingPath&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="78"></a><a href="#78">78</a></div></td><td class="codeLine"> case self::UnreachableResource: return &quot;La ressource n'existe pas (404)&quot;; break;</td></tr>
<tr class="success popin" data-title="12 tests cover line 79" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorMissingPath&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="79"></a><a href="#79">79</a></div></td><td class="codeLine"> case self::MissingPath: return &quot;Le chemin de delegation n'a pas ete renseigne&quot;; break;</td></tr>
<tr class="success popin" data-title="11 tests cover line 80" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="80"></a><a href="#80">80</a></div></td><td class="codeLine"> case self::WrongPathModule: return &quot;Le chemin de delegation est incorrect ('nomModule/nomMethode')&quot;; break;</td></tr>
<tr class="success popin" data-title="10 tests cover line 81" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorWrongPathRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="81"></a><a href="#81">81</a></div></td><td class="codeLine"> case self::WrongPathRepo: return &quot;Le chemin de delegation est incorrect ('nomRepo/nomMethode')&quot;; break;</td></tr>
<tr class="success popin" data-title="9 tests cover line 82" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownModule&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"> case self::UnknownModule: return &quot;Le module n'existe pas&quot;; break;</td></tr>
<tr class="success popin" data-title="8 tests cover line 83" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownRepo&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="83"></a><a href="#83">83</a></div></td><td class="codeLine"> case self::UnknownRepo: return &quot;Le repo n'existe pas&quot;; break;</td></tr>
<tr class="success popin" data-title="7 tests cover line 84" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUnknownMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="84"></a><a href="#84">84</a></div></td><td class="codeLine"> case self::UnknownMethod: return &quot;Le methode n'existe pas&quot;; break;</td></tr>
<tr class="success popin" data-title="6 tests cover line 85" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorUncallableMethod&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="85"></a><a href="#85">85</a></div></td><td class="codeLine"> case self::UncallableMethod: return &quot;Le methode n'est pas amorcable&quot;; break;</td></tr>
<tr><td><div align="right"><a name="86"></a><a href="#86">86</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="5 tests cover line 87" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorParamError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="87"></a><a href="#87">87</a></div></td><td class="codeLine"> case self::ParamError: return &quot;Un ou plusieurs parametres sont manquants ou incorrects&quot;; break;</td></tr>
<tr class="success popin" data-title="4 tests cover line 88" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorModuleError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="88"></a><a href="#88">88</a></div></td><td class="codeLine"> case self::ModuleError: return &quot;Erreur lors du traitement du module&quot;; break;</td></tr>
<tr class="success popin" data-title="3 tests cover line 89" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorRepoError&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="89"></a><a href="#89">89</a></div></td><td class="codeLine"> case self::RepoError: return &quot;Erreur lors du traitement du repo&quot;; break;</td></tr>
<tr><td><div align="right"><a name="90"></a><a href="#90">90</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="2 tests cover line 91" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorPDOConnection&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="91"></a><a href="#91">91</a></div></td><td class="codeLine"> case self::PDOConnection: return &quot;La connexion avec la base de donnees a echoue&quot;; break;</td></tr>
<tr><td><div align="right"><a name="92"></a><a href="#92">92</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="93"></a><a href="#93">93</a></div></td><td class="codeLine"> // default: return &quot;Erreur inconnue...&quot;; break;</td></tr>
<tr><td><div align="right"><a name="94"></a><a href="#94">94</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="95"></a><a href="#95">95</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="96"></a><a href="#96">96</a></div></td><td class="codeLine"> // Erreur inconnue</td></tr>
<tr class="success popin" data-title="1 test covers line 97" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorNotKnown&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="97"></a><a href="#97">97</a></div></td><td class="codeLine"> return null;</td></tr>
<tr><td><div align="right"><a name="98"></a><a href="#98">98</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="99"></a><a href="#99">99</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="100"></a><a href="#100">100</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="101"></a><a href="#101">101</a></div></td><td class="codeLine"></td></tr>
</tbody>
</table>
@ -203,7 +220,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Fri Feb 12 23:40:08 CET 2016.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Sat Feb 13 17:24:32 CET 2016.</small>
</p>
</footer>
</div>

View File

@ -223,42 +223,42 @@
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"> */</td></tr>
<tr><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"> public function __construct($url, $view=false){</td></tr>
<tr class="success popin" data-title="4 tests cover line 31" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"> $this-&gt;error = ManagerError::Success;</td></tr>
<tr class="success popin" data-title="4 tests cover line 31" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"> $this-&gt;error = ManagerError::Success;</td></tr>
<tr><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"> /* [0] On met a jour la configuration</td></tr>
<tr><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"> =====================================================*/</td></tr>
<tr><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"> // Extensions supportees</td></tr>
<tr class="success popin" data-title="4 tests cover line 37" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"> $extensions_conf = json_decode( file_get_contents(__ROOT__.self::$extension_config_path), true );</td></tr>
<tr class="success popin" data-title="4 tests cover line 37" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"> $extensions_conf = json_decode( file_get_contents(__ROOT__.self::$extension_config_path), true );</td></tr>
<tr><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"> // Gestion de l'erreur de parsage</td></tr>
<tr class="success popin" data-title="4 tests cover line 40" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"> if( $extensions_conf == null ){</td></tr>
<tr class="success popin" data-title="4 tests cover line 40" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"> if( $extensions_conf == null ){</td></tr>
<tr class="danger"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"> $this-&gt;error = ManagerError::ParsingFailed;</td></tr>
<tr class="danger"><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"> return false;</td></tr>
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="4 tests cover line 45" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"> self::$supported_extensions = $extensions_conf;</td></tr>
<tr class="success popin" data-title="4 tests cover line 45" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"> self::$supported_extensions = $extensions_conf;</td></tr>
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"> // Dossiers supportes</td></tr>
<tr class="success popin" data-title="4 tests cover line 48" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"> $parents_conf = json_decode( file_get_contents(__ROOT__.self::$parents_config_path), true );</td></tr>
<tr class="success popin" data-title="4 tests cover line 48" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"> $parents_conf = json_decode( file_get_contents(__ROOT__.self::$parents_config_path), true );</td></tr>
<tr><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"> // Gestion de l'erreur de parsage</td></tr>
<tr class="success popin" data-title="4 tests cover line 51" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"> if( $parents_conf == null ){</td></tr>
<tr class="success popin" data-title="4 tests cover line 51" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"> if( $parents_conf == null ){</td></tr>
<tr class="danger"><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"> $this-&gt;error = ManagerError::ParsingFailed;</td></tr>
<tr class="danger"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"> return false;</td></tr>
<tr><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="4 tests cover line 56" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"> self::$supported_parents = $parents_conf;</td></tr>
<tr class="success popin" data-title="4 tests cover line 56" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"> self::$supported_parents = $parents_conf;</td></tr>
<tr><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"> /* [1] On recupere les donnees de l'URL</td></tr>
<tr><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"> ==================================================*/</td></tr>
<tr class="success popin" data-title="4 tests cover line 62" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"> $serialFlags = array_slice( explode('/',$url), 1 );</td></tr>
<tr class="success popin" data-title="4 tests cover line 62" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"> $serialFlags = array_slice( explode('/',$url), 1 );</td></tr>
<tr><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"> /* [2] On check/cree les drapeaux avec ces donnees</td></tr>
<tr><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"> ==================================================*/</td></tr>
<tr class="success popin" data-title="4 tests cover line 66" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"> if( !$this-&gt;createFlags($serialFlags) ){ // Creation des drapeaux</td></tr>
<tr class="success popin" data-title="4 tests cover line 66" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"> if( !$this-&gt;createFlags($serialFlags) ){ // Creation des drapeaux</td></tr>
<tr class="danger"><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"> $this-&gt;error = ManagerError::InvalidFlags;</td></tr>
<tr class="danger"><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"> return false;</td></tr>
<tr><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"> }</td></tr>
@ -266,7 +266,7 @@
<tr><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"> /* [3] On construit le chemin a partir des tags</td></tr>
<tr><td><div align="right"><a name="73"></a><a href="#73">73</a></div></td><td class="codeLine"> ==================================================*/</td></tr>
<tr class="success popin" data-title="4 tests cover line 74" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"> if( !$this-&gt;buildPath() ){ // Construction du chemin</td></tr>
<tr class="success popin" data-title="4 tests cover line 74" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"> if( !$this-&gt;buildPath() ){ // Construction du chemin</td></tr>
<tr class="danger"><td><div align="right"><a name="75"></a><a href="#75">75</a></div></td><td class="codeLine"> $this-&gt;error = ManagerError::UnreachableResource;</td></tr>
<tr class="danger"><td><div align="right"><a name="76"></a><a href="#76">76</a></div></td><td class="codeLine"> return false;</td></tr>
<tr><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"> }</td></tr>
@ -274,10 +274,10 @@
<tr><td><div align="right"><a name="79"></a><a href="#79">79</a></div></td><td class="codeLine"> /* [4] On gere l'affichage pour l'appel externe/interne</td></tr>
<tr><td><div align="right"><a name="80"></a><a href="#80">80</a></div></td><td class="codeLine"> ==================================================*/</td></tr>
<tr><td><div align="right"><a name="81"></a><a href="#81">81</a></div></td><td class="codeLine"> if( $view ) // Appel externe</td></tr>
<tr class="success popin" data-title="4 tests cover line 82" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"> $this-&gt;view();</td></tr>
<tr class="success popin" data-title="4 tests cover line 82" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"> $this-&gt;view();</td></tr>
<tr><td><div align="right"><a name="83"></a><a href="#83">83</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="84"></a><a href="#84">84</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="4 tests cover line 85" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="85"></a><a href="#85">85</a></div></td><td class="codeLine"> return true;</td></tr>
<tr class="success popin" data-title="4 tests cover line 85" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="85"></a><a href="#85">85</a></div></td><td class="codeLine"> return true;</td></tr>
<tr><td><div align="right"><a name="86"></a><a href="#86">86</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="87"></a><a href="#87">87</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="88"></a><a href="#88">88</a></div></td><td class="codeLine"></td></tr>
@ -290,8 +290,8 @@
<tr><td><div align="right"><a name="95"></a><a href="#95">95</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="96"></a><a href="#96">96</a></div></td><td class="codeLine"> */</td></tr>
<tr><td><div align="right"><a name="97"></a><a href="#97">97</a></div></td><td class="codeLine"> public static function getResource($route){</td></tr>
<tr class="success popin" data-title="4 tests cover line 98" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="98"></a><a href="#98">98</a></div></td><td class="codeLine"> $instance = new ResourceDispatcher($route);</td></tr>
<tr class="success popin" data-title="4 tests cover line 99" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="99"></a><a href="#99">99</a></div></td><td class="codeLine"> return $instance-&gt;getContent();</td></tr>
<tr class="success popin" data-title="4 tests cover line 98" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="98"></a><a href="#98">98</a></div></td><td class="codeLine"> $instance = new ResourceDispatcher($route);</td></tr>
<tr class="success popin" data-title="4 tests cover line 99" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="99"></a><a href="#99">99</a></div></td><td class="codeLine"> return $instance-&gt;getContent();</td></tr>
<tr><td><div align="right"><a name="100"></a><a href="#100">100</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="101"></a><a href="#101">101</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="102"></a><a href="#102">102</a></div></td><td class="codeLine"></td></tr>
@ -307,46 +307,46 @@
<tr><td><div align="right"><a name="112"></a><a href="#112">112</a></div></td><td class="codeLine"> /* [1] Verification des flags (version serialisee)</td></tr>
<tr><td><div align="right"><a name="113"></a><a href="#113">113</a></div></td><td class="codeLine"> ======================================================*/</td></tr>
<tr><td><div align="right"><a name="114"></a><a href="#114">114</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="4 tests cover line 115" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="115"></a><a href="#115">115</a></div></td><td class="codeLine"> $correct = true;</td></tr>
<tr class="success popin" data-title="4 tests cover line 115" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="115"></a><a href="#115">115</a></div></td><td class="codeLine"> $correct = true;</td></tr>
<tr><td><div align="right"><a name="116"></a><a href="#116">116</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="117"></a><a href="#117">117</a></div></td><td class="codeLine"> // Verification du nombre de drapeaux () au moins 3</td></tr>
<tr class="success popin" data-title="4 tests cover line 118" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="118"></a><a href="#118">118</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; count($serialFlags) &gt;= 3;</td></tr>
<tr class="success popin" data-title="4 tests cover line 118" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="118"></a><a href="#118">118</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; count($serialFlags) &gt;= 3;</td></tr>
<tr><td><div align="right"><a name="119"></a><a href="#119">119</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="120"></a><a href="#120">120</a></div></td><td class="codeLine"> // Verification que l'extension est correcte</td></tr>
<tr class="success popin" data-title="4 tests cover line 121" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="121"></a><a href="#121">121</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; array_key_exists($serialFlags[0], self::$supported_extensions);</td></tr>
<tr class="success popin" data-title="4 tests cover line 121" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="121"></a><a href="#121">121</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; array_key_exists($serialFlags[0], self::$supported_extensions);</td></tr>
<tr><td><div align="right"><a name="122"></a><a href="#122">122</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="123"></a><a href="#123">123</a></div></td><td class="codeLine"> // Verification du filename</td></tr>
<tr class="success popin" data-title="4 tests cover line 124" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="124"></a><a href="#124">124</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; preg_match('#^[\w_-]+$#i', $serialFlags[1]);</td></tr>
<tr class="success popin" data-title="4 tests cover line 124" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="124"></a><a href="#124">124</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; preg_match('#^[\w_-]+$#i', $serialFlags[1]);</td></tr>
<tr><td><div align="right"><a name="125"></a><a href="#125">125</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="126"></a><a href="#126">126</a></div></td><td class="codeLine"> // Verification du parent</td></tr>
<tr class="success popin" data-title="4 tests cover line 127" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="127"></a><a href="#127">127</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; array_key_exists($serialFlags[2], self::$supported_parents);</td></tr>
<tr class="success popin" data-title="4 tests cover line 127" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="127"></a><a href="#127">127</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; array_key_exists($serialFlags[2], self::$supported_parents);</td></tr>
<tr><td><div align="right"><a name="128"></a><a href="#128">128</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="129"></a><a href="#129">129</a></div></td><td class="codeLine"> // Verification du sous-parent (optionnel)</td></tr>
<tr class="success popin" data-title="4 tests cover line 130" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="130"></a><a href="#130">130</a></div></td><td class="codeLine"> $opt_subParent = count($serialFlags) &gt;= 4;</td></tr>
<tr class="success popin" data-title="4 tests cover line 130" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="130"></a><a href="#130">130</a></div></td><td class="codeLine"> $opt_subParent = count($serialFlags) &gt;= 4;</td></tr>
<tr><td><div align="right"><a name="131"></a><a href="#131">131</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="132"></a><a href="#132">132</a></div></td><td class="codeLine"> if( $opt_subParent )</td></tr>
<tr class="success popin" data-title="4 tests cover line 133" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="133"></a><a href="#133">133</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; preg_match('#^[\w_-]+$#i', $serialFlags[3]);</td></tr>
<tr class="success popin" data-title="4 tests cover line 133" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="133"></a><a href="#133">133</a></div></td><td class="codeLine"> $correct = $correct &amp;&amp; preg_match('#^[\w_-]+$#i', $serialFlags[3]);</td></tr>
<tr><td><div align="right"><a name="134"></a><a href="#134">134</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="135"></a><a href="#135">135</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="4 tests cover line 136" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="136"></a><a href="#136">136</a></div></td><td class="codeLine"> if( !$correct )</td></tr>
<tr class="success popin" data-title="4 tests cover line 137" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="137"></a><a href="#137">137</a></div></td><td class="codeLine"> return false;</td></tr>
<tr class="success popin" data-title="4 tests cover line 136" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="136"></a><a href="#136">136</a></div></td><td class="codeLine"> if( !$correct )</td></tr>
<tr class="success popin" data-title="4 tests cover line 137" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="137"></a><a href="#137">137</a></div></td><td class="codeLine"> return false;</td></tr>
<tr><td><div align="right"><a name="138"></a><a href="#138">138</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="139"></a><a href="#139">139</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="140"></a><a href="#140">140</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="141"></a><a href="#141">141</a></div></td><td class="codeLine"> /* [2] Creation (non serialisee) des flags</td></tr>
<tr><td><div align="right"><a name="142"></a><a href="#142">142</a></div></td><td class="codeLine"> ======================================================*/</td></tr>
<tr><td><div align="right"><a name="143"></a><a href="#143">143</a></div></td><td class="codeLine"> // Si tout se deroule bien, on cree les flags</td></tr>
<tr class="success popin" data-title="4 tests cover line 144" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="144"></a><a href="#144">144</a></div></td><td class="codeLine"> $this-&gt;flags = array(</td></tr>
<tr class="success popin" data-title="4 tests cover line 145" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="145"></a><a href="#145">145</a></div></td><td class="codeLine"> 'extension' =&gt; $serialFlags[0],</td></tr>
<tr class="success popin" data-title="4 tests cover line 146" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="146"></a><a href="#146">146</a></div></td><td class="codeLine"> 'filename' =&gt; $serialFlags[1],</td></tr>
<tr class="success popin" data-title="4 tests cover line 147" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="147"></a><a href="#147">147</a></div></td><td class="codeLine"> 'parent' =&gt; $serialFlags[2]</td></tr>
<tr class="success popin" data-title="4 tests cover line 148" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="148"></a><a href="#148">148</a></div></td><td class="codeLine"> );</td></tr>
<tr class="success popin" data-title="4 tests cover line 144" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="144"></a><a href="#144">144</a></div></td><td class="codeLine"> $this-&gt;flags = array(</td></tr>
<tr class="success popin" data-title="4 tests cover line 145" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="145"></a><a href="#145">145</a></div></td><td class="codeLine"> 'extension' =&gt; $serialFlags[0],</td></tr>
<tr class="success popin" data-title="4 tests cover line 146" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="146"></a><a href="#146">146</a></div></td><td class="codeLine"> 'filename' =&gt; $serialFlags[1],</td></tr>
<tr class="success popin" data-title="4 tests cover line 147" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="147"></a><a href="#147">147</a></div></td><td class="codeLine"> 'parent' =&gt; $serialFlags[2]</td></tr>
<tr class="success popin" data-title="4 tests cover line 148" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="148"></a><a href="#148">148</a></div></td><td class="codeLine"> );</td></tr>
<tr><td><div align="right"><a name="149"></a><a href="#149">149</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="150"></a><a href="#150">150</a></div></td><td class="codeLine"> // Ajout du sous-parent optionnel</td></tr>
<tr><td><div align="right"><a name="151"></a><a href="#151">151</a></div></td><td class="codeLine"> if( $opt_subParent )</td></tr>
<tr class="success popin" data-title="4 tests cover line 152" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="152"></a><a href="#152">152</a></div></td><td class="codeLine"> $this-&gt;flags['subparent'] = $serialFlags[3];</td></tr>
<tr class="success popin" data-title="4 tests cover line 152" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="152"></a><a href="#152">152</a></div></td><td class="codeLine"> $this-&gt;flags['subparent'] = $serialFlags[3];</td></tr>
<tr><td><div align="right"><a name="153"></a><a href="#153">153</a></div></td><td class="codeLine"></td></tr>
<tr class="success popin" data-title="4 tests cover line 154" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="154"></a><a href="#154">154</a></div></td><td class="codeLine"> return true;</td></tr>
<tr class="success popin" data-title="4 tests cover line 154" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="154"></a><a href="#154">154</a></div></td><td class="codeLine"> return true;</td></tr>
<tr><td><div align="right"><a name="155"></a><a href="#155">155</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="156"></a><a href="#156">156</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="157"></a><a href="#157">157</a></div></td><td class="codeLine"> }</td></tr>
@ -365,10 +365,10 @@
<tr><td><div align="right"><a name="170"></a><a href="#170">170</a></div></td><td class="codeLine"> /* [1] On recupere le HEADER associe a l'extension</td></tr>
<tr><td><div align="right"><a name="171"></a><a href="#171">171</a></div></td><td class="codeLine"> ==========================================================*/</td></tr>
<tr><td><div align="right"><a name="172"></a><a href="#172">172</a></div></td><td class="codeLine"> // Si aucun header pour cet cle, on retourne une erreur</td></tr>
<tr class="success popin" data-title="4 tests cover line 173" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="173"></a><a href="#173">173</a></div></td><td class="codeLine"> if( !isset(self::$supported_extensions[$this-&gt;flags['extension']]) ) return false;</td></tr>
<tr class="success popin" data-title="4 tests cover line 173" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="173"></a><a href="#173">173</a></div></td><td class="codeLine"> if( !isset(self::$supported_extensions[$this-&gt;flags['extension']]) ) return false;</td></tr>
<tr><td><div align="right"><a name="174"></a><a href="#174">174</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="175"></a><a href="#175">175</a></div></td><td class="codeLine"> // On recupere le header associe</td></tr>
<tr class="success popin" data-title="4 tests cover line 176" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="176"></a><a href="#176">176</a></div></td><td class="codeLine"> $header = self::$supported_extensions[$this-&gt;flags['extension']];</td></tr>
<tr class="success popin" data-title="4 tests cover line 176" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="176"></a><a href="#176">176</a></div></td><td class="codeLine"> $header = self::$supported_extensions[$this-&gt;flags['extension']];</td></tr>
<tr><td><div align="right"><a name="177"></a><a href="#177">177</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="178"></a><a href="#178">178</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="179"></a><a href="#179">179</a></div></td><td class="codeLine"></td></tr>
@ -377,28 +377,28 @@
<tr><td><div align="right"><a name="182"></a><a href="#182">182</a></div></td><td class="codeLine"> /* [2] On recupere le chemin associe au parent</td></tr>
<tr><td><div align="right"><a name="183"></a><a href="#183">183</a></div></td><td class="codeLine"> ==========================================================*/</td></tr>
<tr><td><div align="right"><a name="184"></a><a href="#184">184</a></div></td><td class="codeLine"> // Si aucun dossier pour cet indice, on retourne une erreur</td></tr>
<tr class="success popin" data-title="4 tests cover line 185" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="185"></a><a href="#185">185</a></div></td><td class="codeLine"> if( !isset(self::$supported_parents[$this-&gt;flags['parent']]) ) return false;</td></tr>
<tr class="success popin" data-title="4 tests cover line 185" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="185"></a><a href="#185">185</a></div></td><td class="codeLine"> if( !isset(self::$supported_parents[$this-&gt;flags['parent']]) ) return false;</td></tr>
<tr><td><div align="right"><a name="186"></a><a href="#186">186</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="187"></a><a href="#187">187</a></div></td><td class="codeLine"> // On recupere le dossier associe</td></tr>
<tr class="success popin" data-title="4 tests cover line 188" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="188"></a><a href="#188">188</a></div></td><td class="codeLine"> $parent = self::$supported_parents[$this-&gt;flags['parent']];</td></tr>
<tr class="success popin" data-title="4 tests cover line 188" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="188"></a><a href="#188">188</a></div></td><td class="codeLine"> $parent = self::$supported_parents[$this-&gt;flags['parent']];</td></tr>
<tr><td><div align="right"><a name="189"></a><a href="#189">189</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="190"></a><a href="#190">190</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="191"></a><a href="#191">191</a></div></td><td class="codeLine"> /* [3] Gestion du sous-parent optionnel</td></tr>
<tr><td><div align="right"><a name="192"></a><a href="#192">192</a></div></td><td class="codeLine"> ==========================================================*/</td></tr>
<tr class="success popin" data-title="4 tests cover line 193" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="193"></a><a href="#193">193</a></div></td><td class="codeLine"> $opt_subParent = (isset($this-&gt;flags['subparent'])) ? $this-&gt;flags['subparent'].'/' : '';</td></tr>
<tr class="success popin" data-title="4 tests cover line 193" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="193"></a><a href="#193">193</a></div></td><td class="codeLine"> $opt_subParent = (isset($this-&gt;flags['subparent'])) ? $this-&gt;flags['subparent'].'/' : '';</td></tr>
<tr><td><div align="right"><a name="194"></a><a href="#194">194</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="195"></a><a href="#195">195</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="196"></a><a href="#196">196</a></div></td><td class="codeLine"> /* [4] On definit le header</td></tr>
<tr><td><div align="right"><a name="197"></a><a href="#197">197</a></div></td><td class="codeLine"> ==========================================================*/</td></tr>
<tr class="success popin" data-title="4 tests cover line 198" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="198"></a><a href="#198">198</a></div></td><td class="codeLine"> $this-&gt;header = $header;</td></tr>
<tr class="success popin" data-title="4 tests cover line 198" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="198"></a><a href="#198">198</a></div></td><td class="codeLine"> $this-&gt;header = $header;</td></tr>
<tr><td><div align="right"><a name="199"></a><a href="#199">199</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="200"></a><a href="#200">200</a></div></td><td class="codeLine"> /* [5] On construit le chemin</td></tr>
<tr><td><div align="right"><a name="201"></a><a href="#201">201</a></div></td><td class="codeLine"> ==========================================================*/</td></tr>
<tr class="success popin" data-title="4 tests cover line 202" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="202"></a><a href="#202">202</a></div></td><td class="codeLine"> $this-&gt;path = __ROOT__.$parent.'/'.$opt_subParent.$this-&gt;flags['filename'].'.'.$this-&gt;flags['extension'];</td></tr>
<tr class="success popin" data-title="4 tests cover line 202" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="202"></a><a href="#202">202</a></div></td><td class="codeLine"> $this-&gt;path = __ROOT__.$parent.'/'.$opt_subParent.$this-&gt;flags['filename'].'.'.$this-&gt;flags['extension'];</td></tr>
<tr><td><div align="right"><a name="203"></a><a href="#203">203</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="204"></a><a href="#204">204</a></div></td><td class="codeLine"> /* [6] On retourne si le fichier existe ou non</td></tr>
<tr><td><div align="right"><a name="205"></a><a href="#205">205</a></div></td><td class="codeLine"> ==========================================================*/</td></tr>
<tr class="success popin" data-title="4 tests cover line 206" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="206"></a><a href="#206">206</a></div></td><td class="codeLine"> return @file_get_contents( $this-&gt;path ) != false;</td></tr>
<tr class="success popin" data-title="4 tests cover line 206" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="206"></a><a href="#206">206</a></div></td><td class="codeLine"> return @file_get_contents( $this-&gt;path ) != false;</td></tr>
<tr><td><div align="right"><a name="207"></a><a href="#207">207</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="208"></a><a href="#208">208</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="209"></a><a href="#209">209</a></div></td><td class="codeLine"></td></tr>
@ -427,12 +427,12 @@
<tr><td><div align="right"><a name="232"></a><a href="#232">232</a></div></td><td class="codeLine"> */</td></tr>
<tr><td><div align="right"><a name="233"></a><a href="#233">233</a></div></td><td class="codeLine"> public function getContent(){</td></tr>
<tr><td><div align="right"><a name="234"></a><a href="#234">234</a></div></td><td class="codeLine"> // S'il y a eu une erreur en amont</td></tr>
<tr class="success popin" data-title="4 tests cover line 235" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="235"></a><a href="#235">235</a></div></td><td class="codeLine"> if( $this-&gt;error != ManagerError::Success )</td></tr>
<tr class="success popin" data-title="4 tests cover line 236" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="236"></a><a href="#236">236</a></div></td><td class="codeLine"> return false; // on retourne faux</td></tr>
<tr class="success popin" data-title="4 tests cover line 235" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="235"></a><a href="#235">235</a></div></td><td class="codeLine"> if( $this-&gt;error != ManagerError::Success )</td></tr>
<tr class="success popin" data-title="4 tests cover line 236" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="236"></a><a href="#236">236</a></div></td><td class="codeLine"> return false; // on retourne faux</td></tr>
<tr><td><div align="right"><a name="237"></a><a href="#237">237</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="238"></a><a href="#238">238</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="239"></a><a href="#239">239</a></div></td><td class="codeLine"> // On inclut le contenu</td></tr>
<tr class="success popin" data-title="4 tests cover line 240" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="240"></a><a href="#240">240</a></div></td><td class="codeLine"> return file_get_contents($this-&gt;path);</td></tr>
<tr class="success popin" data-title="4 tests cover line 240" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithSERVERLocal&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="240"></a><a href="#240">240</a></div></td><td class="codeLine"> return file_get_contents($this-&gt;path);</td></tr>
<tr><td><div align="right"><a name="241"></a><a href="#241">241</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="242"></a><a href="#242">242</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="243"></a><a href="#243">243</a></div></td><td class="codeLine"></td></tr>
@ -450,7 +450,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Fri Feb 12 23:40:08 CET 2016.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Sat Feb 13 17:24:32 CET 2016.</small>
</p>
</footer>
</div>

View File

@ -120,18 +120,18 @@
<tr><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"> *</td></tr>
<tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"> */</td></tr>
<tr><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"> function autoloader($className){</td></tr>
<tr class="success popin" data-title="11 tests cover line 25" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"> $path = '';</td></tr>
<tr class="success popin" data-title="12 tests cover line 25" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorSuccess&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"> $path = '';</td></tr>
<tr><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"> /* [1] On utilise le namespace pour localiser</td></tr>
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"> ===============================================*/</td></tr>
<tr><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"> // On remplace les '\' par des '/'</td></tr>
<tr class="success popin" data-title="11 tests cover line 30" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"> $path = str_replace('\\', '/', $className) . '.php';</td></tr>
<tr class="success popin" data-title="11 tests cover line 31" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"> $path = __ROOT__.'/'.$path;</td></tr>
<tr class="success popin" data-title="12 tests cover line 30" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorSuccess&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"> $path = str_replace('\\', '/', $className) . '.php';</td></tr>
<tr class="success popin" data-title="12 tests cover line 31" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorSuccess&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"> $path = __ROOT__.'/'.$path;</td></tr>
<tr><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"> // Si le fichier existe, on l'inclut</td></tr>
<tr class="success popin" data-title="11 tests cover line 34" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"> if( file_exists($path) )</td></tr>
<tr class="success popin" data-title="11 tests cover line 35" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"> require_once $path;</td></tr>
<tr class="success popin" data-title="11 tests cover line 36" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"> }</td></tr>
<tr class="success popin" data-title="12 tests cover line 34" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorSuccess&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"> if( file_exists($path) )</td></tr>
<tr class="success popin" data-title="12 tests cover line 35" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorSuccess&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"> require_once $path;</td></tr>
<tr class="success popin" data-title="12 tests cover line 36" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeInfCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testAutoIncrementSizeLtInfIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSize3Correct&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeLt3Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testUsernameSizeGt30Incorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testMailSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordContentIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testGetInstanceWithNoSERVER&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistence&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_construct::testInstancePersistenceRefutation&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_delNumeric::testGlobal2Dim&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\ManagerError::testErrorSuccess&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"> // On definit l'autoloader comme autoloader (obvious)</td></tr>
<tr><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"> spl_autoload_register('autoloader', false, true);</td></tr>
@ -153,7 +153,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Fri Feb 12 23:40:08 CET 2016.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Sat Feb 13 17:24:32 CET 2016.</small>
</p>
</footer>
</div>

View File

@ -40,8 +40,6 @@
<div class="span6">
<h2>Top Project Risks</h2>
<ul>
<li><a href="ManagerError.php.html#7">ManagerError</a> (182)</li>
<li><a href="sessionManager.php.html#6">sessionManager</a> (120)</li>
<li><a href="Database.php.html#6">DataBase</a> (52)</li>
<li><a href="ResourceDispatcher.php.html#6">ResourceDispatcher</a> (32)</li>
@ -50,10 +48,6 @@
<div class="span6">
<h2>Least Tested Methods</h2>
<ul>
<li><a href="sessionManager.php.html#22">sessionManager::reset_session</a> (0%)</li>
<li><a href="ManagerError.php.html#62">ManagerError::explicit</a> (0%)</li>
<li><a href="sessionManager.php.html#46">sessionManager::update_token</a> (0%)</li>
<li><a href="sessionManager.php.html#60">sessionManager::session_start</a> (0%)</li>
<li><a href="ResourceDispatcher.php.html#216">ResourceDispatcher::view</a> (0%)</li>
<li><a href="ResourceDispatcher.php.html#30">ResourceDispatcher::__construct</a> (60%)</li>
<li><a href="Database.php.html#47">DataBase::getInstance</a> (85%)</li>
@ -65,7 +59,7 @@
</div>
<footer>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Fri Feb 12 23:40:08 CET 2016.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Sat Feb 13 17:24:32 CET 2016.</small>
</p>
</footer>
</div>
@ -96,7 +90,7 @@ $(document).ready(function() {
min: 0
},
series: [{
data: [1,1,0,0,0,0,0,0,1,0,1,0]
data: [0,0,0,0,0,0,0,0,1,0,1,2]
}],
});
@ -124,7 +118,7 @@ $(document).ready(function() {
}
},
series: [{
data: [[95.3125,52,"<a href=\"Database.php.html#6\">DataBase<\/a>"],[0,13,"<a href=\"ManagerError.php.html#7\">ManagerError<\/a>"],[75.925925925926,24,"<a href=\"ResourceDispatcher.php.html#6\">ResourceDispatcher<\/a>"],[3.3333333333333,11,"<a href=\"sessionManager.php.html#6\">sessionManager<\/a>"]],
data: [[95.3125,52,"<a href=\"Database.php.html#6\">DataBase<\/a>"],[100,16,"<a href=\"ManagerError.php.html#7\">ManagerError<\/a>"],[75.925925925926,24,"<a href=\"ResourceDispatcher.php.html#6\">ResourceDispatcher<\/a>"],[100,11,"<a href=\"sessionManager.php.html#6\">sessionManager<\/a>"]],
marker: {
symbol: 'diamond'
}

View File

@ -41,25 +41,25 @@
</thead>
<tbody>
<tr>
<td class="warning">Total</td>
<td class="success">Total</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 88.51%;"></div>
</div>
</td>
<td class="success small"><div align="right">88.51%</div></td>
<td class="success small"><div align="right">154&nbsp;/&nbsp;174</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 70.59%;"></div>
</div>
</td>
<td class="success small"><div align="right">70.59%</div></td>
<td class="success small"><div align="right">12&nbsp;/&nbsp;17</div></td>
<td class="warning big"> <div class="progress progress-warning" style="width: 100px;">
<div class="bar" style="width: 63.37%;"></div>
<div class="bar" style="width: 50.00%;"></div>
</div>
</td>
<td class="warning small"><div align="right">63.37%</div></td>
<td class="warning small"><div align="right">109&nbsp;/&nbsp;172</div></td>
<td class="warning big"> <div class="progress progress-warning" style="width: 100px;">
<div class="bar" style="width: 47.06%;"></div>
</div>
</td>
<td class="warning small"><div align="right">47.06%</div></td>
<td class="warning small"><div align="right">8&nbsp;/&nbsp;17</div></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;4</div></td>
<td class="warning small"><div align="right">50.00%</div></td>
<td class="warning small"><div align="right">2&nbsp;/&nbsp;4</div></td>
</tr>
<tr>
@ -85,25 +85,25 @@
</tr>
<tr>
<td class="danger"><i class="icon-file"></i> <a href="ManagerError.php.html">ManagerError.php</a></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success"><i class="icon-file"></i> <a href="ManagerError.php.html">ManagerError.php</a></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;14</div></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">16&nbsp;/&nbsp;16</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
</tr>
<tr>
@ -145,25 +145,25 @@
</tr>
<tr>
<td class="danger"><i class="icon-file"></i> <a href="sessionManager.php.html">sessionManager.php</a></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 3.33%;"></div>
<td class="success"><i class="icon-file"></i> <a href="sessionManager.php.html">sessionManager.php</a></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">3.33%</div></td>
<td class="danger small"><div align="right">1&nbsp;/&nbsp;30</div></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 25.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">30&nbsp;/&nbsp;30</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">25.00%</div></td>
<td class="danger small"><div align="right">1&nbsp;/&nbsp;4</div></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">4&nbsp;/&nbsp;4</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
</tr>
@ -177,7 +177,7 @@
<span class="success"><strong>High</strong>: 70% to 100%</span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Fri Feb 12 23:40:08 CET 2016.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Sat Feb 13 17:24:32 CET 2016.</small>
</p>
</footer>
</div>

View File

@ -41,49 +41,49 @@
</thead>
<tbody>
<tr>
<td class="danger">Total</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success">Total</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 25.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">25.00%</div></td>
<td class="danger small"><div align="right">1&nbsp;/&nbsp;4</div></td>
<td class="danger small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 3.33%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">4&nbsp;/&nbsp;4</div></td>
<td class="success small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">3.33%</div></td>
<td class="danger small"><div align="right">1&nbsp;/&nbsp;30</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">30&nbsp;/&nbsp;30</div></td>
</tr>
<tr>
<td class="danger">sessionManager</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success">sessionManager</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 25.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">25.00%</div></td>
<td class="danger small"><div align="right">1&nbsp;/&nbsp;4</div></td>
<td class="danger small">120.30</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 3.33%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">4&nbsp;/&nbsp;4</div></td>
<td class="success small">11</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">3.33%</div></td>
<td class="danger small"><div align="right">1&nbsp;/&nbsp;30</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">30&nbsp;/&nbsp;30</div></td>
</tr>
<tr>
@ -104,54 +104,54 @@
</tr>
<tr>
<td class="danger" colspan="4">&nbsp;<a href="#22">reset_session($session_id=null)</a></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success" colspan="4">&nbsp;<a href="#22">reset_session($session_id=null)</a></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">6</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">2</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;8</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">8&nbsp;/&nbsp;8</div></td>
</tr>
<tr>
<td class="danger" colspan="4">&nbsp;<a href="#46">update_token()</a></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success" colspan="4">&nbsp;<a href="#46">update_token()</a></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">2</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">1</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;5</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">5&nbsp;/&nbsp;5</div></td>
</tr>
<tr>
<td class="danger" colspan="4">&nbsp;<a href="#60">session_start()</a></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success" colspan="4">&nbsp;<a href="#60">session_start()</a></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">56</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">7</td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;16</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">16&nbsp;/&nbsp;16</div></td>
</tr>
@ -173,7 +173,7 @@
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"> /* SECURE SHA1 ALGORITHM */</td></tr>
<tr><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"> /*************************/</td></tr>
<tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"> public static function secure_sha1($data){</td></tr>
<tr class="success popin" data-title="2 tests cover line 15" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"> return sha1( '&quot;&gt;\[..|{@#))'.sha1($data.'_)Q@#((%*_$%(@#') );</td></tr>
<tr class="success popin" data-title="14 tests cover line 15" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeEqCorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\Database_check::testPasswordSizeSupIncorrect&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSecureSHA1&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"> return sha1( '&quot;&gt;\[..|{@#))'.sha1($data.'_)Q@#((%*_$%(@#') );</td></tr>
<tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"></td></tr>
@ -182,38 +182,38 @@
<tr><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"> /*****************************/</td></tr>
<tr><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"> private static function reset_session($session_id=null){</td></tr>
<tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"> // On ferme la session</td></tr>
<tr class="danger"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"> session_destroy();</td></tr>
<tr class="success popin" data-title="11 tests cover line 24" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"> session_destroy();</td></tr>
<tr><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"> // On definit l'id session si donne en argument</td></tr>
<tr class="danger"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"> if( $session_id != null )</td></tr>
<tr class="danger"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"> session_id( $session_id );</td></tr>
<tr class="success popin" data-title="11 tests cover line 27" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"> if( $session_id != null )</td></tr>
<tr class="success popin" data-title="11 tests cover line 28" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"> session_id( $session_id );</td></tr>
<tr><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"> // Precaution: on met a jour le cookie</td></tr>
<tr class="danger"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"> setcookie('PHPSESSID', session_id(), time()+60*30 );</td></tr>
<tr class="success popin" data-title="11 tests cover line 31" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"> setcookie('PHPSESSID', session_id(), time()+60*30 );</td></tr>
<tr><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"> // On redemarre la session avec le bon id session</td></tr>
<tr class="danger"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"> \session_start();</td></tr>
<tr class="success popin" data-title="11 tests cover line 34" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"> \session_start();</td></tr>
<tr><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"> // On met a jour le token</td></tr>
<tr class="danger"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"> self::update_token();</td></tr>
<tr class="success popin" data-title="11 tests cover line 37" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"> self::update_token();</td></tr>
<tr><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"></td></tr>
<tr class="danger"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"> header('Refresh: 0');</td></tr>
<tr class="danger"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"> }</td></tr>
<tr class="success popin" data-title="11 tests cover line 40" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"> header('Refresh: 0');</td></tr>
<tr class="success popin" data-title="11 tests cover line 41" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"> /*******************/</td></tr>
<tr><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"> /* GENERE UN TOKEN */</td></tr>
<tr><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"> /*******************/</td></tr>
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"> private static function update_token(){</td></tr>
<tr class="danger"><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"> $token = self::$prefix.self::secure_sha1(uniqid());</td></tr>
<tr class="success popin" data-title="11 tests cover line 47" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"> $token = self::$prefix.self::secure_sha1(uniqid());</td></tr>
<tr><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"> // On definit le token en session</td></tr>
<tr class="danger"><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"> $_SESSION['session_token'] = $token;</td></tr>
<tr class="success popin" data-title="11 tests cover line 50" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"> $_SESSION['session_token'] = $token;</td></tr>
<tr><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"> // On definit le token en cookie</td></tr>
<tr class="danger"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"> $_COOKIE['session_token'] = $_SESSION['session_token'];</td></tr>
<tr class="danger"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"> setcookie('session_token', $_COOKIE['session_token'], time()+60*30 );</td></tr>
<tr class="danger"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"> }</td></tr>
<tr class="success popin" data-title="11 tests cover line 53" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"> $_COOKIE['session_token'] = $_SESSION['session_token'];</td></tr>
<tr class="success popin" data-title="11 tests cover line 54" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"> setcookie('session_token', $_COOKIE['session_token'], time()+60*30 );</td></tr>
<tr class="success popin" data-title="11 tests cover line 55" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"> /************/</td></tr>
<tr><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"> /* AMORCEUR */</td></tr>
@ -222,29 +222,29 @@
<tr><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"> /* [1] Génération et Gestion des donnees a utiliser</td></tr>
<tr><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"> ==============================================================*/</td></tr>
<tr><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"> // On genere le hash a partir des donnees personnelles</td></tr>
<tr class="danger"><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"> self::$prefix = self::secure_sha1( $_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT'] );</td></tr>
<tr class="success popin" data-title="11 tests cover line 64" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"> self::$prefix = self::secure_sha1( $_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT'] );</td></tr>
<tr><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"> // On cree un id session associe a ces donnees personnelles</td></tr>
<tr class="danger"><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"> $sessid = substr(self::$prefix,0,5) . substr(self::secure_sha1(uniqid()),0,24);</td></tr>
<tr class="success popin" data-title="11 tests cover line 67" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"> $sessid = substr(self::$prefix,0,5) . substr(self::secure_sha1(uniqid()),0,24);</td></tr>
<tr><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"> // On genere un token pour l'execution suivante</td></tr>
<tr class="danger"><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"> $token = self::$prefix.self::secure_sha1(uniqid());</td></tr>
<tr class="success popin" data-title="11 tests cover line 70" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"> $token = self::$prefix.self::secure_sha1(uniqid());</td></tr>
<tr><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"> // On definit/recupere le token</td></tr>
<tr class="danger"><td><div align="right"><a name="73"></a><a href="#73">73</a></div></td><td class="codeLine"> $session_token = (isset($_COOKIE['session_token'])) ? $_COOKIE['session_token'] : null;</td></tr>
<tr class="success popin" data-title="11 tests cover line 73" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="73"></a><a href="#73">73</a></div></td><td class="codeLine"> $session_token = (isset($_COOKIE['session_token'])) ? $_COOKIE['session_token'] : null;</td></tr>
<tr><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="75"></a><a href="#75">75</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="76"></a><a href="#76">76</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"> /* [2] Verification de l'id session</td></tr>
<tr><td><div align="right"><a name="78"></a><a href="#78">78</a></div></td><td class="codeLine"> ==============================================================*/</td></tr>
<tr class="danger"><td><div align="right"><a name="79"></a><a href="#79">79</a></div></td><td class="codeLine"> \session_start();</td></tr>
<tr class="success popin" data-title="11 tests cover line 79" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="79"></a><a href="#79">79</a></div></td><td class="codeLine"> \session_start();</td></tr>
<tr><td><div align="right"><a name="80"></a><a href="#80">80</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="81"></a><a href="#81">81</a></div></td><td class="codeLine"> // On verifie l'id session (5 premiers chars du hash des donnees perso)</td></tr>
<tr class="danger"><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"> $valid_sessid = strpos( session_id(), substr(self::$prefix,0,5) ) === 0;</td></tr>
<tr class="success popin" data-title="11 tests cover line 82" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"> $valid_sessid = strpos( session_id(), substr(self::$prefix,0,5) ) === 0;</td></tr>
<tr><td><div align="right"><a name="83"></a><a href="#83">83</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="84"></a><a href="#84">84</a></div></td><td class="codeLine"> // Si id session incorrect ou pas de token</td></tr>
<tr class="danger"><td><div align="right"><a name="85"></a><a href="#85">85</a></div></td><td class="codeLine"> if( !$valid_sessid )</td></tr>
<tr class="danger"><td><div align="right"><a name="86"></a><a href="#86">86</a></div></td><td class="codeLine"> self::reset_session( $sessid ); // On initialise la session (bon id session)</td></tr>
<tr class="success popin" data-title="11 tests cover line 85" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="85"></a><a href="#85">85</a></div></td><td class="codeLine"> if( !$valid_sessid )</td></tr>
<tr class="success popin" data-title="11 tests cover line 86" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="86"></a><a href="#86">86</a></div></td><td class="codeLine"> self::reset_session( $sessid ); // On initialise la session (bon id session)</td></tr>
<tr><td><div align="right"><a name="87"></a><a href="#87">87</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="88"></a><a href="#88">88</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="89"></a><a href="#89">89</a></div></td><td class="codeLine"> // si id session invalide</td></tr>
@ -253,20 +253,20 @@
<tr><td><div align="right"><a name="92"></a><a href="#92">92</a></div></td><td class="codeLine"> /* [3] Verification du token</td></tr>
<tr><td><div align="right"><a name="93"></a><a href="#93">93</a></div></td><td class="codeLine"> ==============================================================*/</td></tr>
<tr><td><div align="right"><a name="94"></a><a href="#94">94</a></div></td><td class="codeLine"> // On verifie que le token est valide</td></tr>
<tr class="danger"><td><div align="right"><a name="95"></a><a href="#95">95</a></div></td><td class="codeLine"> $valid_token = $session_token != null; // verification de l'existence du cookie</td></tr>
<tr class="danger"><td><div align="right"><a name="96"></a><a href="#96">96</a></div></td><td class="codeLine"> $valid_token = $valid_token &amp;&amp; strpos($session_token, self::$prefix) === 0; // verification des donnes personnelles</td></tr>
<tr class="danger"><td><div align="right"><a name="97"></a><a href="#97">97</a></div></td><td class="codeLine"> $valid_token = $valid_token &amp;&amp; isset($_SESSION['session_token']); // verification que la variable session associee existe</td></tr>
<tr class="danger"><td><div align="right"><a name="98"></a><a href="#98">98</a></div></td><td class="codeLine"> $valid_token = $valid_token &amp;&amp; $_SESSION['session_token'] == $_COOKIE['session_token']; // verification que la session est coherente</td></tr>
<tr class="success popin" data-title="11 tests cover line 95" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="95"></a><a href="#95">95</a></div></td><td class="codeLine"> $valid_token = $session_token != null; // verification de l'existence du cookie</td></tr>
<tr class="success popin" data-title="11 tests cover line 96" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="96"></a><a href="#96">96</a></div></td><td class="codeLine"> $valid_token = $valid_token &amp;&amp; strpos($session_token, self::$prefix) === 0; // verification des donnes personnelles</td></tr>
<tr class="success popin" data-title="11 tests cover line 97" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="97"></a><a href="#97">97</a></div></td><td class="codeLine"> $valid_token = $valid_token &amp;&amp; isset($_SESSION['session_token']); // verification que la variable session associee existe</td></tr>
<tr class="success popin" data-title="11 tests cover line 98" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="98"></a><a href="#98">98</a></div></td><td class="codeLine"> $valid_token = $valid_token &amp;&amp; $_SESSION['session_token'] == $_COOKIE['session_token']; // verification que la session est coherente</td></tr>
<tr><td><div align="right"><a name="99"></a><a href="#99">99</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="100"></a><a href="#100">100</a></div></td><td class="codeLine"> /* [4] Si token inexistant</td></tr>
<tr><td><div align="right"><a name="101"></a><a href="#101">101</a></div></td><td class="codeLine"> ==============================================================*/</td></tr>
<tr class="danger"><td><div align="right"><a name="102"></a><a href="#102">102</a></div></td><td class="codeLine"> if( !$valid_token )</td></tr>
<tr class="danger"><td><div align="right"><a name="103"></a><a href="#103">103</a></div></td><td class="codeLine"> self::reset_session($sessid); // On initialise la session</td></tr>
<tr class="success popin" data-title="11 tests cover line 102" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="102"></a><a href="#102">102</a></div></td><td class="codeLine"> if( !$valid_token )</td></tr>
<tr class="success popin" data-title="11 tests cover line 103" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="103"></a><a href="#103">103</a></div></td><td class="codeLine"> self::reset_session($sessid); // On initialise la session</td></tr>
<tr><td><div align="right"><a name="104"></a><a href="#104">104</a></div></td><td class="codeLine"> else</td></tr>
<tr class="danger"><td><div align="right"><a name="105"></a><a href="#105">105</a></div></td><td class="codeLine"> self::update_token(); // Dans tous les cas, on cree un nouveau token</td></tr>
<tr class="success popin" data-title="5 tests cover line 105" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="105"></a><a href="#105">105</a></div></td><td class="codeLine"> self::update_token(); // Dans tous les cas, on cree un nouveau token</td></tr>
<tr><td><div align="right"><a name="106"></a><a href="#106">106</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="107"></a><a href="#107">107</a></div></td><td class="codeLine"></td></tr>
<tr class="danger"><td><div align="right"><a name="108"></a><a href="#108">108</a></div></td><td class="codeLine"> }</td></tr>
<tr class="success popin" data-title="11 tests cover line 108" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdSessionUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testIdenticalPrefix&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testCookieUniq&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIp&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongIpThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionIdTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgent&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSessionTokenTheftWithWrongUserAgentThenWell&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testRegeneratedToken&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;phpunit\sessionManager::testSamePrefixToken&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="108"></a><a href="#108">108</a></div></td><td class="codeLine"> }</td></tr>
<tr><td><div align="right"><a name="109"></a><a href="#109">109</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="110"></a><a href="#110">110</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="111"></a><a href="#111">111</a></div></td><td class="codeLine"> }</td></tr>
@ -284,7 +284,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Fri Feb 12 23:40:08 CET 2016.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.13</a> using <a href="http://www.php.net/" target="_top">PHP 5.5.9-1ubuntu4.14</a> and <a href="http://phpunit.de/">PHPUnit 3.7.28</a> at Sat Feb 13 17:24:32 CET 2016.</small>
</p>
</footer>
</div>

View File

@ -2,10 +2,18 @@
<testsuites>
<testsuite name="\manager\Database">
<testsuite name="manager/Database">
<directory prefix="Database_" suffix=".php">./tests/</directory>
</testsuite>
<testsuite name="manager/ManagerError">
<file>./tests/ManagerError.php</file>
</testsuite>
<testsuite name="manager/sessionManager">
<file>./tests/sessionManager.php</file>
</testsuite>
</testsuites>

View File

@ -1,6 +1,6 @@
<?php
<?php namespace phpunit;
class Database_check extends PHPUnit_Framework_TestCase{
class Database_check extends \PHPUnit_Framework_TestCase{
/* [1] AUTO_INCREMENT

View File

@ -1,6 +1,6 @@
<?php
<?php namespace phpunit;
class Database_construct extends PHPUnit_Framework_TestCase{
class Database_construct extends \PHPUnit_Framework_TestCase{
/* [1] Verification du chargement de la config
=========================================================*/

View File

@ -1,6 +1,6 @@
<?php
<?php namespace phpunit;
class Database_delNumeric extends PHPUnit_Framework_TestCase{
class Database_delNumeric extends \PHPUnit_Framework_TestCase{
/* [1] Verification pour 2 dimensions
=========================================================*/

View File

@ -0,0 +1,107 @@
<?php namespace phpunit;
class ManagerError extends \PHPUnit_Framework_TestCase{
/* [1] Test de toutes les erreurs
=========================================================*/
public function testErrorSuccess(){
$error = \manager\ManagerError::Success;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorParsingFailed(){
$error = \manager\ManagerError::ParsingFailed;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorInvalidFlags(){
$error = \manager\ManagerError::InvalidFlags;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorUnreachableResource(){
$error = \manager\ManagerError::UnreachableResource;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorMissingPath(){
$error = \manager\ManagerError::MissingPath;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorWrongPathModule(){
$error = \manager\ManagerError::WrongPathModule;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorUnknownModule(){
$error = \manager\ManagerError::UnknownModule;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorUnknownMethod(){
$error = \manager\ManagerError::UnknownMethod;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorUncallableMethod(){
$error = \manager\ManagerError::UncallableMethod;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorParamError(){
$error = \manager\ManagerError::ParamError;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorModuleError(){
$error = \manager\ManagerError::ModuleError;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorWrongPathRepo(){
$error = \manager\ManagerError::WrongPathRepo;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorUnknownRepo(){
$error = \manager\ManagerError::UnknownRepo;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorRepoError(){
$error = \manager\ManagerError::RepoError;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorPDOConnection(){
$error = \manager\ManagerError::PDOConnection;
$this->assertNotNull( \manager\ManagerError::explicit($error) );
}
public function testErrorNotKnown(){
$error = 1239;
$this->assertNull( \manager\ManagerError::explicit($error) );
}
}
?>

View File

@ -0,0 +1,251 @@
<?php namespace phpunit;
class sessionManager extends \PHPUnit_Framework_TestCase{
/* [1] Test de toutes les fonctions utilitaires
=========================================================*/
public function testSecureSHA1(){
$plain = 'montexteclair';
$hash = \manager\sessionManager::secure_sha1($plain);
// Verification desuiee
$this->assertEquals(40, strlen($hash) );
$this->assertNotContains( $plain, $hash );
}
/* [2] Test de l'unicite et du prefix
=========================================================*/
public function testIdSessionUniq(){
// Premiere session
session_destroy();
@\manager\sessionManager::session_start();
$id_first = session_id();
// Seconde session
session_destroy();
@\manager\sessionManager::session_start();
$id_second = session_id();
$this->assertNotEquals( $id_first, $id_second );
}
public function testIdenticalPrefix(){
// Premiere session
session_destroy();
@\manager\sessionManager::session_start();
$first_prefix = substr(session_id(), 0, 5);
// Seconde session
session_destroy();
@\manager\sessionManager::session_start();
$second_prefix = substr(session_id(), 0, 5);
$this->assertEquals( $first_prefix, $second_prefix );
}
public function testCookieUniq(){
// Premiere session
session_destroy();
@\manager\sessionManager::session_start();
$token_first = $_COOKIE['session_token'];
// Seconde session
session_destroy();
@\manager\sessionManager::session_start();
$token_second = $_COOKIE['session_token'];
$this->assertNotEquals( $token_first, $token_second );
}
/* [3] REMOTE_ADDR different
=========================================================*/
public function testSessionIdTheftWithWrongIp(){
$default_remote_addr = $_SERVER['REMOTE_ADDR'];
// Hote n.1
$_SERVER['REMOTE_ADDR'] = 'a';
session_destroy();
@\manager\sessionManager::session_start();
$first_prefix = substr(session_id(), 0, 5);
// Hote n.2
$_SERVER['REMOTE_ADDR'] = 'b';
session_destroy();
@\manager\sessionManager::session_start();
$second_prefix = substr(session_id(), 0, 5);
$this->assertNotEquals( $first_prefix, $second_prefix );
$_SERVER['REMOTE_ADDR'] = $default_remote_addr;
}
public function testSessionTokenTheftWithWrongIp(){
$default_remote_addr = $_SERVER['REMOTE_ADDR'];
// Hote n.1
$_SERVER['REMOTE_ADDR'] = 'a';
session_destroy();
@\manager\sessionManager::session_start();
$first_prefix = substr($_COOKIE['session_token'], 0, 5);
// Hote n.2
$_SERVER['REMOTE_ADDR'] = 'b';
session_destroy();
@\manager\sessionManager::session_start();
$second_prefix = substr($_COOKIE['session_token'], 0, 5);
$this->assertNotEquals( $first_prefix, $second_prefix );
$_SERVER['REMOTE_ADDR'] = $default_remote_addr;
}
public function testSessionTokenTheftWithWrongIpThenWell(){
$default_remote_addr = $_SERVER['REMOTE_ADDR'];
// Hote n.1
$_SERVER['REMOTE_ADDR'] = 'a';
session_destroy();
@\manager\sessionManager::session_start();
$first_prefix = substr($_COOKIE['session_token'], 0, 40);
// Hote n.2
$_SERVER['REMOTE_ADDR'] = 'b';
session_destroy();
@\manager\sessionManager::session_start();
$second_prefix = substr($_COOKIE['session_token'], 0, 40);
// Hote n.1
$_SERVER['REMOTE_ADDR'] = 'a';
session_destroy();
@\manager\sessionManager::session_start();
$third_prefix = substr($_COOKIE['session_token'], 0, 40);
$this->assertEquals( $first_prefix, $third_prefix );
$this->assertNotEquals( $first_prefix, $second_prefix );
$_SERVER['REMOTE_ADDR'] = $default_remote_addr;
}
/* [4] HTTP_USER_AGENT different
=========================================================*/
public function testSessionIdTheftWithWrongUserAgent(){
$default_http_user_agent = $_SERVER['HTTP_USER_AGENT'];
// Hote n.1
$_SERVER['HTTP_USER_AGENT'] = 'a';
session_destroy();
@\manager\sessionManager::session_start();
$first_prefix = substr(session_id(), 0, 5);
// Hote n.2
$_SERVER['HTTP_USER_AGENT'] = 'b';
session_destroy();
@\manager\sessionManager::session_start();
$second_prefix = substr(session_id(), 0, 5);
$this->assertNotEquals( $first_prefix, $second_prefix );
$_SERVER['HTTP_USER_AGENT'] = $default_http_user_agent;
}
public function testSessionTokenTheftWithWrongUserAgent(){
$default_http_user_agent = $_SERVER['HTTP_USER_AGENT'];
// Hote n.1
$_SERVER['HTTP_USER_AGENT'] = 'a';
session_destroy();
@\manager\sessionManager::session_start();
$first_prefix = substr($_COOKIE['session_token'], 0, 40);
// Hote n.2
$_SERVER['HTTP_USER_AGENT'] = 'b';
session_destroy();
@\manager\sessionManager::session_start();
$second_prefix = substr($_COOKIE['session_token'], 0, 40);
$this->assertNotEquals( $first_prefix, $second_prefix );
$_SERVER['HTTP_USER_AGENT'] = $default_http_user_agent;
}
public function testSessionTokenTheftWithWrongUserAgentThenWell(){
$default_http_user_agent = $_SERVER['HTTP_USER_AGENT'];
// Hote n.1
$_SERVER['HTTP_USER_AGENT'] = 'a';
session_destroy();
@\manager\sessionManager::session_start();
$first_prefix = substr($_COOKIE['session_token'], 0, 40);
// Hote n.2
$_SERVER['HTTP_USER_AGENT'] = 'b';
session_destroy();
@\manager\sessionManager::session_start();
$second_prefix = substr($_COOKIE['session_token'], 0, 40);
// Hote n.1
$_SERVER['HTTP_USER_AGENT'] = 'a';
session_destroy();
@\manager\sessionManager::session_start();
$third_prefix = substr($_COOKIE['session_token'], 0, 40);
$this->assertEquals( $first_prefix, $third_prefix );
$this->assertNotEquals( $first_prefix, $second_prefix );
$_SERVER['HTTP_USER_AGENT'] = $default_http_user_agent;
}
/* [5] Regeneration du cookie 'session_token'
=========================================================*/
public function testRegeneratedToken(){
// Connection 1
session_destroy();
@\manager\sessionManager::session_start();
$first_token = $_COOKIE['session_token'];
// Connection 2
session_destroy();
@\manager\sessionManager::session_start();
$second_token = $_COOKIE['session_token'];
$this->assertNotEquals( $first_token, $second_token );
}
public function testSamePrefixToken(){
// Connection 1
session_destroy();
@\manager\sessionManager::session_start();
$first_token_prefix = substr($_COOKIE['session_token'], 0, 40);
// Connection 2
session_destroy();
@\manager\sessionManager::session_start();
$second_token_prefix = substr($_COOKIE['session_token'], 0, 40);
$this->assertEquals( $first_token_prefix, $second_token_prefix );
}
}
?>

View File

@ -39,6 +39,7 @@
########
# FAIT #
########
- [x] [phpunit/sessionManager] test unitaires du manager de session php
- [x] [ModuleAnswer] Gestion des erreurs au niveau interne des Modules
- [x] [autoloader][phpunit/bootstrap.php] Correction des bugs de $_SERVER avec PHPUnit -> autoloader + bootstrap personnalise
- [x] [sessionManager] Import de sessionManager