0.00% covered (danger)
@@ -71,21 +71,21 @@
repos |
-
- 95.69% covered (success)
+
+ 96.65% covered (success)
|
- 95.69% |
- 200 / 209 |
+ 96.65% |
+ 202 / 209 |
-
- 76.00% covered (warning)
+
+ 80.00% covered (warning)
|
- 76.00% |
- 19 / 25 |
+ 80.00% |
+ 20 / 25 |
diff --git a/coverage/repos/MedecinRepo.php.html b/coverage/repos/MedecinRepo.php.html
index bf4f5ff..3ee9160 100755
--- a/coverage/repos/MedecinRepo.php.html
+++ b/coverage/repos/MedecinRepo.php.html
@@ -52,22 +52,22 @@
0.00% |
0 / 1 |
-
- 71.43% covered (warning)
+
+ 85.71% covered (warning)
|
- 71.43% |
- 5 / 7 |
+ 85.71% |
+ 6 / 7 |
CRAP |
-
- 91.18% covered (success)
+
+ 97.06% covered (success)
|
- 91.18% |
- 31 / 34 |
+ 97.06% |
+ 33 / 34 |
|
@@ -81,22 +81,22 @@
0.00% |
0 / 1 |
-
- 71.43% covered (warning)
+
+ 85.71% covered (warning)
|
- 71.43% |
- 5 / 7 |
- 20.27 |
+ 85.71% |
+ 6 / 7 |
+ 17 |
-
- 91.18% covered (success)
+
+ 97.06% covered (success)
|
- 91.18% |
- 31 / 34 |
+ 97.06% |
+ 33 / 34 |
@@ -130,7 +130,7 @@
0.00% |
0 / 1 |
- 5.03 |
+ 3.01 |
88.89% covered (warning)
@@ -172,7 +172,7 @@
|
100.00% |
1 / 1 |
- 7 |
+ 6 |
100.00% covered (success)
@@ -226,24 +226,24 @@
|
- update |
-
-
- 0.00% covered (danger)
+ update |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 2 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -264,46 +264,46 @@
| |
| public static function getById($id){ |
| |
-
| if(!StaticRepo::checkParam($id, 'Numeric')) return false; |
+
| if(!StaticRepo::checkParam($id, 'Numeric')) return false; |
| |
-
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM Medecin WHERE Id = :id'); |
-
| $req->execute(['id' => $id]); |
-
| return StaticRepo::delNumeric( $req->fetch(), true ); |
+
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM Medecin WHERE Id = :id'); |
+
| $req->execute(['id' => $id]); |
+
| return StaticRepo::delNumeric( $req->fetch(), true ); |
| |
| } |
| |
| public static function add($civilite,$prenom,$nom){ |
| |
-
| if(!StaticRepo::checkParam($civilite,'Civilite') && !StaticRepo::checkParam($prenom,'String45') && !StaticRepo::checkParam($nom,'String45')) return false; |
+
| if(!StaticRepo::checkParam($civilite,'Civilite') | !StaticRepo::checkParam($prenom,'String45') | !StaticRepo::checkParam($nom,'String45')) return false; |
| |
-
| $req = StaticRepo::getConnexion()->prepare('INSERT INTO Medecin VALUES (DEFAULT,:civilite,:prenom,:nom)'); |
-
| $result = $req->execute(['civilite' => $civilite, |
-
| 'nom' => $nom, |
-
| 'prenom' => $prenom |
+
| $req = StaticRepo::getConnexion()->prepare('INSERT INTO Medecin VALUES (DEFAULT,:civilite,:prenom,:nom)'); |
+
| $result = $req->execute(['civilite' => $civilite, |
+
| 'nom' => $nom, |
+
| 'prenom' => $prenom |
| ]); |
| |
| |
-
| $id = StaticRepo::getConnexion()->lastInsertId(); |
-
| settype($id, 'integer'); |
+
| $id = StaticRepo::getConnexion()->lastInsertId(); |
+
| settype($id, 'integer'); |
| |
| |
-
| if($result) return $id; |
+
| if($result) return $id; |
| else return false; |
| } |
| |
| public static function delete($idMedecin){ |
| |
-
| if(!StaticRepo::checkParam($idMedecin,'Numeric')) return false; |
+
| if(!StaticRepo::checkParam($idMedecin,'Numeric')) return false; |
| |
-
| var_dump($idMedecin); |
+
| var_dump($idMedecin); |
| |
-
| $req = StaticRepo::getConnexion()->prepare('DELETE FROM Medecin WHERE Id = :id'); |
-
| return $req->execute(['id' => $idMedecin]); |
+
| $req = StaticRepo::getConnexion()->prepare('DELETE FROM Medecin WHERE Id = :id'); |
+
| return $req->execute(['id' => $idMedecin]); |
| } |
| |
| public static function search($nom, $prenom){ |
| |
-
| if( !StaticRepo::checkParam($prenom,'String45') && !StaticRepo::checkParam($nom,'String45') ) return false; |
+
| if( !StaticRepo::checkParam($prenom,'String45') | !StaticRepo::checkParam($nom,'String45') ) return false; |
| |
| |
| $optPrenom = ( $prenom != 'null' && StaticRepo::checkParam($prenom,'String45') ) ? '%'.$prenom.'%' : '%'; |
@@ -342,8 +342,8 @@
| |
| public static function update($id, $nom, $prenom){ |
| |
-
| $req = StaticRepo::getConnexion()->prepare("UPDATE Medecin SET Nom = :nom, Prenom = :prenom WHERE Id = :id"); |
-
| return $req->execute([ ':nom' => strtoupper($nom), ':prenom' => $prenom, ':id' => $id ]); |
+
| $req = StaticRepo::getConnexion()->prepare("UPDATE Medecin SET Nom = :nom, Prenom = :prenom WHERE Id = :id"); |
+
| return $req->execute([ ':nom' => strtoupper($nom), ':prenom' => $prenom, ':id' => $id ]); |
| } |
| |
| } |
@@ -359,7 +359,7 @@
Dead Code
- Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.1 and PHPUnit 5.1.3 at Sun Jan 3 17:26:02 UTC 2016.
+ Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.1 and PHPUnit 5.1.3 at Sun Jan 3 17:34:44 UTC 2016.
diff --git a/coverage/repos/PatientRepo.php.html b/coverage/repos/PatientRepo.php.html
index f501eda..f0ff79c 100755
--- a/coverage/repos/PatientRepo.php.html
+++ b/coverage/repos/PatientRepo.php.html
@@ -88,7 +88,7 @@