fin du repo RDV/Stats + tests+generation des RDV
This commit is contained in:
parent
f4bd78ae2d
commit
80b05b86db
|
@ -1,3 +1,4 @@
|
|||
/test.php
|
||||
/.idea
|
||||
/.project
|
||||
/repositories/config.json
|
||||
|
|
|
@ -0,0 +1,602 @@
|
|||
[
|
||||
{
|
||||
"DateRDV": "2015-06-08 11:33:43",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 14,
|
||||
"Medecin_Id": 60
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-04 04:22:43",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 9,
|
||||
"Medecin_Id": 15
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-02-08 06:05:29",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 63,
|
||||
"Medecin_Id": 2
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-13 08:48:17",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 3,
|
||||
"Medecin_Id": 40
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-10-23 08:01:11",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 58,
|
||||
"Medecin_Id": 74
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-01-02 09:51:57",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 33,
|
||||
"Medecin_Id": 71
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-17 11:06:44",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 21,
|
||||
"Medecin_Id": 69
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-08 03:55:22",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 18,
|
||||
"Medecin_Id": 41
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-10-18 03:25:50",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 23,
|
||||
"Medecin_Id": 70
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-01-29 09:21:39",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 82,
|
||||
"Medecin_Id": 8
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-23 02:57:06",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 13,
|
||||
"Medecin_Id": 25
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-30 05:11:44",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 20,
|
||||
"Medecin_Id": 77
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-06-28 09:08:39",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 49,
|
||||
"Medecin_Id": 82
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-06-08 02:00:35",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 93,
|
||||
"Medecin_Id": 13
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-03-01 02:39:30",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 28,
|
||||
"Medecin_Id": 26
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-24 01:02:24",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 56,
|
||||
"Medecin_Id": 76
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-06 11:13:48",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 39,
|
||||
"Medecin_Id": 97
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-01-15 03:36:46",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 46,
|
||||
"Medecin_Id": 78
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-06-26 09:04:07",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 97,
|
||||
"Medecin_Id": 55
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-01 08:27:26",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 22,
|
||||
"Medecin_Id": 50
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-02-08 11:50:46",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 18,
|
||||
"Medecin_Id": 34
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-01-29 03:27:30",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 14,
|
||||
"Medecin_Id": 58
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-03-16 01:57:19",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 52,
|
||||
"Medecin_Id": 4
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-21 05:49:59",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 11,
|
||||
"Medecin_Id": 14
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-09 03:58:24",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 91,
|
||||
"Medecin_Id": 29
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-02-04 06:35:51",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 29,
|
||||
"Medecin_Id": 62
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-04 09:18:35",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 99,
|
||||
"Medecin_Id": 87
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-05-02 04:25:22",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 2,
|
||||
"Medecin_Id": 50
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-29 02:33:10",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 51,
|
||||
"Medecin_Id": 89
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-10-15 07:02:24",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 10,
|
||||
"Medecin_Id": 8
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-23 08:57:53",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 65,
|
||||
"Medecin_Id": 35
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-02-22 04:17:11",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 35,
|
||||
"Medecin_Id": 82
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-04 07:48:57",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 76,
|
||||
"Medecin_Id": 53
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-18 07:48:07",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 94,
|
||||
"Medecin_Id": 19
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-02-15 07:25:06",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 69,
|
||||
"Medecin_Id": 44
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-06-08 04:25:39",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 15,
|
||||
"Medecin_Id": 88
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-24 01:33:30",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 84,
|
||||
"Medecin_Id": 20
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-11 04:17:24",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 30,
|
||||
"Medecin_Id": 78
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-12 10:59:53",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 61,
|
||||
"Medecin_Id": 95
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-19 05:08:41",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 11,
|
||||
"Medecin_Id": 23
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-29 07:56:16",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 75,
|
||||
"Medecin_Id": 86
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-03-22 01:07:22",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 83,
|
||||
"Medecin_Id": 23
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-06-11 06:05:41",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 89,
|
||||
"Medecin_Id": 20
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-03-17 04:28:43",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 77,
|
||||
"Medecin_Id": 88
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-27 06:14:03",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 27,
|
||||
"Medecin_Id": 54
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-03-07 09:38:22",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 2,
|
||||
"Medecin_Id": 4
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-02-02 01:45:32",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 36,
|
||||
"Medecin_Id": 60
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-06-18 04:52:09",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 69,
|
||||
"Medecin_Id": 99
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-06-24 11:53:34",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 89,
|
||||
"Medecin_Id": 40
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-10-21 04:19:14",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 85,
|
||||
"Medecin_Id": 76
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-14 09:14:08",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 73,
|
||||
"Medecin_Id": 48
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-18 09:11:32",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 90,
|
||||
"Medecin_Id": 11
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-23 02:03:16",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 17,
|
||||
"Medecin_Id": 57
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-05-03 02:25:11",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 21,
|
||||
"Medecin_Id": 63
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-07 09:12:44",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 97,
|
||||
"Medecin_Id": 92
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-05-09 06:18:46",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 21,
|
||||
"Medecin_Id": 32
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-10 10:26:08",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 9,
|
||||
"Medecin_Id": 6
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-06 11:38:09",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 26,
|
||||
"Medecin_Id": 48
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-22 04:18:29",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 81,
|
||||
"Medecin_Id": 90
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-29 12:25:38",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 91,
|
||||
"Medecin_Id": 2
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-22 05:27:02",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 92,
|
||||
"Medecin_Id": 27
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-02-12 09:02:35",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 50,
|
||||
"Medecin_Id": 35
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-07 04:16:19",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 98,
|
||||
"Medecin_Id": 35
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-20 09:12:30",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 22,
|
||||
"Medecin_Id": 57
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-13 09:09:55",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 98,
|
||||
"Medecin_Id": 69
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-04 07:56:59",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 88,
|
||||
"Medecin_Id": 44
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-15 07:32:15",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 72,
|
||||
"Medecin_Id": 59
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-05-26 07:16:43",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 22,
|
||||
"Medecin_Id": 57
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-03-08 05:21:56",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 95,
|
||||
"Medecin_Id": 19
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-01-12 02:11:24",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 51,
|
||||
"Medecin_Id": 72
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-29 08:22:29",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 95,
|
||||
"Medecin_Id": 56
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-10-09 06:50:11",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 53,
|
||||
"Medecin_Id": 5
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-01-09 04:59:41",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 9,
|
||||
"Medecin_Id": 44
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-03-06 01:45:26",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 50,
|
||||
"Medecin_Id": 90
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-20 07:20:01",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 70,
|
||||
"Medecin_Id": 60
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-08 03:18:32",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 34,
|
||||
"Medecin_Id": 23
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-07 05:49:03",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 100,
|
||||
"Medecin_Id": 97
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-05-14 12:17:01",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 37,
|
||||
"Medecin_Id": 4
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-05-26 02:31:26",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 26,
|
||||
"Medecin_Id": 92
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-10 01:06:31",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 37,
|
||||
"Medecin_Id": 19
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-02-12 06:48:08",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 26,
|
||||
"Medecin_Id": 36
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-04 09:58:14",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 56,
|
||||
"Medecin_Id": 51
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-09 11:00:38",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 58,
|
||||
"Medecin_Id": 60
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-07 06:46:08",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 6,
|
||||
"Medecin_Id": 18
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-12-07 04:20:04",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 64,
|
||||
"Medecin_Id": 6
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-28 02:43:55",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 57,
|
||||
"Medecin_Id": 66
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-26 12:20:03",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 27,
|
||||
"Medecin_Id": 36
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-09-06 08:31:43",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 71,
|
||||
"Medecin_Id": 80
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-21 08:18:20",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 22,
|
||||
"Medecin_Id": 30
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-08-13 11:00:42",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 10,
|
||||
"Medecin_Id": 72
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-05-18 01:40:59",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 2,
|
||||
"Medecin_Id": 78
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-15 05:32:12",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 94,
|
||||
"Medecin_Id": 77
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-02-27 03:23:52",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 2,
|
||||
"Medecin_Id": 71
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-07 04:56:09",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 96,
|
||||
"Medecin_Id": 52
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-20 10:32:31",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 57,
|
||||
"Medecin_Id": 38
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-04-09 06:30:20",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 91,
|
||||
"Medecin_Id": 67
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-10-20 04:25:11",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 56,
|
||||
"Medecin_Id": 98
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-11-11 08:29:45",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 88,
|
||||
"Medecin_Id": 39
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-10-21 07:55:43",
|
||||
"Duree": 30,
|
||||
"Patient_Id": 97,
|
||||
"Medecin_Id": 6
|
||||
},
|
||||
{
|
||||
"DateRDV": "2015-07-11 11:02:43",
|
||||
"Duree": 60,
|
||||
"Patient_Id": 7,
|
||||
"Medecin_Id": 22
|
||||
}
|
||||
]
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
'{{repeat(100)}}',
|
||||
{
|
||||
DateRDV: '{{date(new Date(2015, 0, 1), new Date(), "YYYY-MM-dd hh:mm:ss")}}',
|
||||
Duree: '{{random(30,60)}}',
|
||||
Patient_Id: '{{integer(1,100)}}',
|
||||
Medecin_Id: '{{integer(1,100)}}'
|
||||
}
|
||||
]
|
|
@ -51,22 +51,22 @@
|
|||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="80.00" aria-valuemin="0" aria-valuemax="100" style="width: 80.00%">
|
||||
<span class="sr-only">80.00% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">80.00%</div></td>
|
||||
<td class="warning small"><div align="right">4 / 5</div></td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="94.74" aria-valuemin="0" aria-valuemax="100" style="width: 94.74%">
|
||||
<span class="sr-only">94.74% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.24" aria-valuemin="0" aria-valuemax="100" style="width: 95.24%">
|
||||
<span class="sr-only">95.24% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">94.74%</div></td>
|
||||
<td class="success small"><div align="right">18 / 19</div></td>
|
||||
<td class="success small"><div align="right">95.24%</div></td>
|
||||
<td class="success small"><div align="right">20 / 21</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -80,22 +80,22 @@
|
|||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="80.00" aria-valuemin="0" aria-valuemax="100" style="width: 80.00%">
|
||||
<span class="sr-only">80.00% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">80.00%</div></td>
|
||||
<td class="warning small"><div align="right">4 / 5</div></td>
|
||||
<td class="warning small">6.01</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small">7</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="94.74" aria-valuemin="0" aria-valuemax="100" style="width: 94.74%">
|
||||
<span class="sr-only">94.74% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.24" aria-valuemin="0" aria-valuemax="100" style="width: 95.24%">
|
||||
<span class="sr-only">95.24% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">94.74%</div></td>
|
||||
<td class="success small"><div align="right">18 / 19</div></td>
|
||||
<td class="success small"><div align="right">95.24%</div></td>
|
||||
<td class="success small"><div align="right">20 / 21</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -203,6 +203,27 @@
|
|||
<td class="success small"><div align="right">4 / 4</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#51"><abbr title="getAll()">getAll</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -258,7 +279,15 @@
|
|||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 48" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 53" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">query</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin ORDER BY nom, prenom ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -271,7 +300,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 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0RC7</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Tue Dec 8 8:28:46 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 11:50:18 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -60,13 +60,13 @@
|
|||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.67" aria-valuemin="0" aria-valuemax="100" style="width: 96.67%">
|
||||
<span class="sr-only">96.67% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.43" aria-valuemin="0" aria-valuemax="100" style="width: 96.43%">
|
||||
<span class="sr-only">96.43% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">96.67%</div></td>
|
||||
<td class="success small"><div align="right">29 / 30</div></td>
|
||||
<td class="success small"><div align="right">96.43%</div></td>
|
||||
<td class="success small"><div align="right">27 / 28</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -89,34 +89,13 @@
|
|||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small">7</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.67" aria-valuemin="0" aria-valuemax="100" style="width: 96.67%">
|
||||
<span class="sr-only">96.67% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.43" aria-valuemin="0" aria-valuemax="100" style="width: 96.43%">
|
||||
<span class="sr-only">96.43% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">96.67%</div></td>
|
||||
<td class="success small"><div align="right">29 / 30</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#13"><abbr title="__construct()">__construct</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
<td class="success small"><div align="right">96.43%</div></td>
|
||||
<td class="success small"><div align="right">27 / 28</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -200,11 +179,11 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">3 / 3</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#61"><abbr title="search($nom,$prenom)">search</abbr></a></td>
|
||||
<td class="success" colspan="4"> <a href="#60"><abbr title="search($nom,$prenom)">search</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -221,7 +200,28 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">4 / 4</div></td>
|
||||
<td class="success small"><div align="right">3 / 3</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#68"><abbr title="getAll()">getAll</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
@ -239,25 +239,25 @@
|
|||
<tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">PatientRepo</span></td></tr>
|
||||
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">private</span><span class="default"> </span><span class="default">$connexion</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// private $connexion;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">__construct</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 14" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testConstruct</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">connexion</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 15" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testConstruct</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// public function __construct(){</span></td></tr>
|
||||
<tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// StaticRepo::getConnexion() = StaticRepo::getConnexion();</span></td></tr>
|
||||
<tr><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// }</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getById</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 18" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">connexion</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getById</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 18" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 19" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 20" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$civilite</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">,</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$adresse</span><span class="keyword">,</span><span class="default">$adresse2</span><span class="keyword">,</span><span class="default">$ville</span><span class="keyword">,</span><span class="default">$codePostal</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">,</span><span class="default">$lieuNaissance</span><span class="keyword">,</span><span class="default">$numSecu</span><span class="keyword">,</span><span class="default">$medecinTraitant</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$civilite</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">,</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$adresse</span><span class="keyword">,</span><span class="default">$adresse2</span><span class="keyword">,</span><span class="default">$ville</span><span class="keyword">,</span><span class="default">$codePostal</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">,</span><span class="default">$lieuNaissance</span><span class="keyword">,</span><span class="default">$numSecu</span><span class="keyword">,</span><span class="default">$medecinTraitant</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 26" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 27" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">Date</span><span class="keyword">(</span><span class="default">'o-m-d'</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 29" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">connexion</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO Patient VALUES (:civilite,:nom,:prenom,:adresse,:adresse2,:ville,:codePostal,:dateNaissance,:lieuNaissance,:numSecu,DEFAULT,:medecin)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 29" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO Patient VALUES (:civilite,:nom,:prenom,:adresse,:adresse2,:ville,:codePostal,:dateNaissance,:lieuNaissance,:numSecu,DEFAULT,:medecin)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 30" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'civilite'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$civilite</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 31" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 32" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">,</span></td></tr>
|
||||
|
@ -269,37 +269,42 @@
|
|||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 38" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'lieuNaissance'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$lieuNaissance</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 39" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'numSecu'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$numSecu</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 40" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$medecinTraitant</span><span class="default"> </span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 41" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="default"> </span><span class="default">!=</span><span class="default"> </span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">connexion</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 41" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 48" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">connexion</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM Patient WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 48" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM Patient WHERE Patient.Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 49" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">updateMedecinTraitant</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">updateMedecinTraitant</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">connexion</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'UPDATE Patient SET MedecinTraitant = :medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 56" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 57" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></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="warning"><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">search</span><span class="keyword">(</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 63" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">connexion</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Nom LIKE :nom AND Prenom LIKE :prenom'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 64" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 65" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 67" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'UPDATE Patient SET MedecinTraitant = :medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 56" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">,</span><span class="default"> </span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">search</span><span class="keyword">(</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">)</span><span class="keyword">{</span></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="covered-by-large-tests popin" data-title="1 test covers line 62" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Nom LIKE :nom AND Prenom LIKE :prenom'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 63" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 64" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></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="warning"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 70" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">query</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient ORDER BY nom, prenom ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 72" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></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="warning"><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -312,7 +317,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 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0RC7</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Tue Dec 8 8:28:46 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 11:50:18 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -50,23 +50,23 @@
|
|||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="33.33" aria-valuemin="0" aria-valuemax="100" style="width: 33.33%">
|
||||
<span class="sr-only">33.33% covered (danger)</span>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">33.33%</div></td>
|
||||
<td class="danger small"><div align="right">2 / 6</div></td>
|
||||
<td class="danger small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="46.43" aria-valuemin="0" aria-valuemax="100" style="width: 46.43%">
|
||||
<span class="sr-only">46.43% covered (danger)</span>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.30" aria-valuemin="0" aria-valuemax="100" style="width: 96.30%">
|
||||
<span class="sr-only">96.30% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">46.43%</div></td>
|
||||
<td class="danger small"><div align="right">13 / 28</div></td>
|
||||
<td class="success small"><div align="right">96.30%</div></td>
|
||||
<td class="success small"><div align="right">26 / 27</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -79,23 +79,23 @@
|
|||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="33.33" aria-valuemin="0" aria-valuemax="100" style="width: 33.33%">
|
||||
<span class="sr-only">33.33% covered (danger)</span>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">33.33%</div></td>
|
||||
<td class="danger small"><div align="right">2 / 6</div></td>
|
||||
<td class="danger small">14.53</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="46.43" aria-valuemin="0" aria-valuemax="100" style="width: 46.43%">
|
||||
<span class="sr-only">46.43% covered (danger)</span>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small">7</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.30" aria-valuemin="0" aria-valuemax="100" style="width: 96.30%">
|
||||
<span class="sr-only">96.30% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">46.43%</div></td>
|
||||
<td class="danger small"><div align="right">13 / 28</div></td>
|
||||
<td class="success small"><div align="right">96.30%</div></td>
|
||||
<td class="success small"><div align="right">26 / 27</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -120,28 +120,28 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#19"><abbr title="getByDate($date)">getByDate</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
<td class="success" colspan="4"> <a href="#19"><abbr title="getByDate($date)">getByDate</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 5</div></td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">4 / 4</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#27"><abbr title="delete($idRDV)">delete</abbr></a></td>
|
||||
<td class="success" colspan="4"> <a href="#26"><abbr title="delete($idRDV)">delete</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -162,7 +162,7 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#32"><abbr title="add($date,$duree,$idPatient,$idMedecin)">add</abbr></a></td>
|
||||
<td class="danger" colspan="4"> <a href="#31"><abbr title="add($date,$duree,$idPatient,$idMedecin)">add</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -183,45 +183,45 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#45"><abbr title="updateDateTime($idRDV,$dateTime)">updateDateTime</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
<td class="success" colspan="4"> <a href="#44"><abbr title="updateDateTime($idRDV,$dateTime)">updateDateTime</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 4</div></td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">4 / 4</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#52"><abbr title="getByPatientAndDate($idPatient,$date)">getByPatientAndDate</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
<td class="success" colspan="4"> <a href="#51"><abbr title="getByPatientAndDate($idPatient,$date)">getByPatientAndDate</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 5</div></td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">5 / 5</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
@ -241,54 +241,53 @@
|
|||
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="default"> </span></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getById</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 13" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 14" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 15" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 13" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE RDV.id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 14" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 15" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getByDate</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'o-m-d'</span><span class="keyword">,</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE DATE(FROM_UNIXTIME(DateRDV)) = :date'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idRDV</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 28" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM RDV WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 29" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idRDV</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">,</span><span class="default">$duree</span><span class="keyword">,</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 33" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d H:i:s'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 34" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$duree</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'H:i:s'</span><span class="keyword">,</span><span class="default">$duree</span><span class="keyword">*</span><span class="default">60</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 35" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO RDV VALUES (DEFAULT,:date,:duree,:patient,:medecin)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 36" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 37" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'duree'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$duree</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 38" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'patient'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 39" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 41" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="default"> </span><span class="default">!=</span><span class="default"> </span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">updateDateTime</span><span class="keyword">(</span><span class="default">$idRDV</span><span class="keyword">,</span><span class="default">$dateTime</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$dateTime</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'UPDATE RDV SET DateRDV = :date WHERE id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idRDV</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getByPatientAndDate</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE Patient_Id=:patient AND DateRDV=:date'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'patient'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 20" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 21" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE DATE(DateRDV) = :date ORDER BY DateRDV ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 22" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 23" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idRDV</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 27" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM RDV WHERE RDV.id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 28" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idRDV</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">,</span><span class="default">$duree</span><span class="keyword">,</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 32" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d H:i:s'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 33" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$duree</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'H:i:s'</span><span class="keyword">,</span><span class="default">$duree</span><span class="keyword">*</span><span class="default">60</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 34" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO RDV VALUES (DEFAULT,:date,:duree,:patient,:medecin)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 35" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 36" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'duree'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$duree</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 37" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'patient'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 38" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></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="covered-by-large-tests popin" data-title="1 test covers line 40" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="default"> </span><span class="default">!=</span><span class="default"> </span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">updateDateTime</span><span class="keyword">(</span><span class="default">$idRDV</span><span class="keyword">,</span><span class="default">$dateTime</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 45" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d H:i:s'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$dateTime</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 46" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'UPDATE RDV SET DateRDV = :date WHERE id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 47" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 48" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idRDV</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getByPatientAndDate</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 52" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 53" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE Patient_Id=:patient AND DATE(DateRDV)=:date'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 54" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'patient'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 56" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -301,7 +300,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 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0RC7</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Tue Dec 8 8:28:46 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 11:50:18 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -0,0 +1,397 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Code Coverage for /home/seekdasky/git/projetphp/repositories/StaticRepo.php</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="js/html5shiv.min.js"></script>
|
||||
<script src="js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="index.html">/home/seekdasky/git/projetphp/repositories</a></li>
|
||||
<li class="active">StaticRepo.php</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
|
||||
<td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td>
|
||||
<td colspan="3"><div align="center"><strong>Lines</strong></div></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="danger">Total</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="40.00" aria-valuemin="0" aria-valuemax="100" style="width: 40.00%">
|
||||
<span class="sr-only">40.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">40.00%</div></td>
|
||||
<td class="danger small"><div align="right">2 / 5</div></td>
|
||||
<td class="danger small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="58.06" aria-valuemin="0" aria-valuemax="100" style="width: 58.06%">
|
||||
<span class="sr-only">58.06% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">58.06%</div></td>
|
||||
<td class="warning small"><div align="right">18 / 31</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger">StaticRepo</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="40.00" aria-valuemin="0" aria-valuemax="100" style="width: 40.00%">
|
||||
<span class="sr-only">40.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">40.00%</div></td>
|
||||
<td class="danger small"><div align="right">2 / 5</div></td>
|
||||
<td class="danger small">62.01</td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="58.06" aria-valuemin="0" aria-valuemax="100" style="width: 58.06%">
|
||||
<span class="sr-only">58.06% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">58.06%</div></td>
|
||||
<td class="warning small"><div align="right">18 / 31</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#11"><abbr title="__construct()">__construct</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#18"><abbr title="getConnexion()">getConnexion</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">3</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">5 / 5</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#31"><abbr title="testConnexion()">testConnexion</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#45"><abbr title="delNumeric($fetchData, $oneDimension=false)">delNumeric</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">10.29</td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="85.71" aria-valuemin="0" aria-valuemax="100" style="width: 85.71%">
|
||||
<span class="sr-only">85.71% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">85.71%</div></td>
|
||||
<td class="warning small"><div align="right">12 / 14</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#106"><abbr title="checkParam($variable, $dbtype)">checkParam</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">72</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 10</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<table id="code" class="table table-borderless table-condensed">
|
||||
<tbody>
|
||||
<tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine"><span class="default"><?php</span></td></tr>
|
||||
<tr><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">StaticRepo</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">//contiens l'instance de la Connexion PDO</span></td></tr>
|
||||
<tr><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">private</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="default">$connexion</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">//contiens les informations de connexion a la BDD</span></td></tr>
|
||||
<tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">private</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="default">$config</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">private</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">__construct</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/**</span></td></tr>
|
||||
<tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"><span class="comment"> * @return PDO instance de la connexion a la BDD</span></td></tr>
|
||||
<tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="19 tests cover line 19" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testGetConnexion</li><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="default"> </span><span class="default">==</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 20" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">json_decode</span><span class="keyword">(</span><span class="default">file_get_contents</span><span class="keyword">(</span><span class="default">dirname</span><span class="keyword">(</span><span class="default">__FILE__</span><span class="keyword">)</span><span class="keyword">.</span><span class="default">DIRECTORY_SEPARATOR</span><span class="keyword">.</span><span class="default">'config.json'</span><span class="keyword">)</span><span class="keyword">,</span><span class="default">true</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="19 tests cover line 22" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testGetConnexion</li><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="default"> </span><span class="default">==</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 23" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">new</span><span class="default"> </span><span class="default">PDO</span><span class="keyword">(</span><span class="default">'mysql:host='</span><span class="keyword">.</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'host'</span><span class="keyword">]</span><span class="keyword">.</span><span class="default">';dbname='</span><span class="keyword">.</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'database'</span><span class="keyword">]</span><span class="keyword">,</span><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'login'</span><span class="keyword">]</span><span class="keyword">,</span><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'password'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="19 tests cover line 25" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testGetConnexion</li><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/**</span></td></tr>
|
||||
<tr><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="comment"> * @return bool test de la Connexion</span></td></tr>
|
||||
<tr><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">testConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 32" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">instanceof</span><span class="default"> </span><span class="default">PDO</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"></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"></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"><span class="default"> </span><span class="comment">/* SUPPRIME LES VALEURS À CLÉS NUMÉRIQUES DANS UN FETCH D'UNE TABLE DE LA BDD</span></td></tr>
|
||||
<tr><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
||||
<tr><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="comment"> * @fetchData<Array> le résultat d'une $requeteSQL->fetchAll() / $requeteSQL->fetch()</span></td></tr>
|
||||
<tr><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
||||
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="comment"> * @return newFetchData<Array> retourne le tableau donné en paramètre mais sans les valeurs à clés numériques </span></td></tr>
|
||||
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
||||
<tr><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">,</span><span class="default"> </span><span class="default">$oneDimension</span><span class="keyword">=</span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span></td></tr>
|
||||
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// cas où fetch renvoie FALSE</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 48" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="default">$fetchData</span><span class="default"> </span><span class="default">===</span><span class="default"> </span><span class="default">false</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span></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"><span class="default"> </span><span class="comment">/* [1] 2 dimensions</span></td></tr>
|
||||
<tr><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="comment"> ===============================================*/</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 52" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">$oneDimension</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">{</span></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="54"></a><a href="#54">54</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// on supprime les doublons des entrées (indice numérique)</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="10 tests cover line 55" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">for</span><span class="keyword">(</span><span class="default"> </span><span class="default">$i</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">0</span><span class="default"> </span><span class="keyword">;</span><span class="default"> </span><span class="default">$i</span><span class="default"> </span><span class="keyword"><</span><span class="default"> </span><span class="default">count</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">;</span><span class="default"> </span><span class="default">$i</span><span class="default">++</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="comment">// pour tout les utilisateurs</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="9 tests cover line 56" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">foreach</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">as</span><span class="default"> </span><span class="default">$col</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">{</span><span class="default"> </span><span class="comment">// pour toutes les entrées</span></td></tr>
|
||||
<tr><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="9 tests cover line 58" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">mb_detect_encoding</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">,</span><span class="default"> </span><span class="default">'UTF-8'</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">$col</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">utf8_encode</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"><span class="default"> </span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="9 tests cover line 61" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="default">is_int</span><span class="keyword">(</span><span class="default">$col</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="comment">// si l'indice est un entier</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="9 tests cover line 62" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">unset</span><span class="keyword">(</span><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">$col</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// on le supprime</span></td></tr>
|
||||
<tr><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [2] 1 dimensions</span></td></tr>
|
||||
<tr><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"><span class="comment"> ===============================================*/</span></td></tr>
|
||||
<tr><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">else</span><span class="keyword">{</span></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"><span class="default"> </span><span class="comment">// on supprime les doublons des entrées (indice numérique)</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="6 tests cover line 70" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">foreach</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="default"> </span><span class="keyword">as</span><span class="default"> </span><span class="default">$i</span><span class="default">=></span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">{</span><span class="default"> </span><span class="comment">// pour toutes les entrées</span></td></tr>
|
||||
<tr><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"><span class="default"> </span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="6 tests cover line 72" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">mb_detect_encoding</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">,</span><span class="default"> </span><span class="default">'UTF-8'</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="73"></a><a href="#73">73</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">utf8_encode</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">;</span></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="covered-by-large-tests popin" data-title="6 tests cover line 75" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="75"></a><a href="#75">75</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="default">is_int</span><span class="keyword">(</span><span class="default">$i</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="comment">// si l'indice est un entier</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="6 tests cover line 76" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="76"></a><a href="#76">76</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">unset</span><span class="keyword">(</span><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// on le supprime</span></td></tr>
|
||||
<tr><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<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"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="80"></a><a href="#80">80</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 81" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="81"></a><a href="#81">81</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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><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>
|
||||
<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"></td></tr>
|
||||
<tr><td><div align="right"><a name="90"></a><a href="#90">90</a></div></td><td class="codeLine"><span class="comment">// _ _____ ___ _ _ ___ ____ </span></td></tr>
|
||||
<tr><td><div align="right"><a name="91"></a><a href="#91">91</a></div></td><td class="codeLine"><span class="comment">// / \ | ___|_ _| \ | |_ _| _ \ </span></td></tr>
|
||||
<tr><td><div align="right"><a name="92"></a><a href="#92">92</a></div></td><td class="codeLine"><span class="comment">// / _ \ | |_ | || \| || || |_) |</span></td></tr>
|
||||
<tr><td><div align="right"><a name="93"></a><a href="#93">93</a></div></td><td class="codeLine"><span class="comment">// / ___ \ | _| | || |\ || || _ < </span></td></tr>
|
||||
<tr><td><div align="right"><a name="94"></a><a href="#94">94</a></div></td><td class="codeLine"><span class="comment">// /_/ \_\ |_| |___|_| \_|___|_| \_\</span></td></tr>
|
||||
<tr><td><div align="right"><a name="95"></a><a href="#95">95</a></div></td><td class="codeLine"><span class="default"> </span></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"><span class="default"> </span><span class="comment">/* Vérifie le type d'une variable</span></td></tr>
|
||||
<tr><td><div align="right"><a name="98"></a><a href="#98">98</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
||||
<tr><td><div align="right"><a name="99"></a><a href="#99">99</a></div></td><td class="codeLine"><span class="comment"> * @variable<mixed> la variable à vérifier </span></td></tr>
|
||||
<tr><td><div align="right"><a name="100"></a><a href="#100">100</a></div></td><td class="codeLine"><span class="comment"> * @dbtype<String> le type correspondant à la vérification</span></td></tr>
|
||||
<tr><td><div align="right"><a name="101"></a><a href="#101">101</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
||||
<tr><td><div align="right"><a name="102"></a><a href="#102">102</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
||||
<tr><td><div align="right"><a name="103"></a><a href="#103">103</a></div></td><td class="codeLine"><span class="comment"> * @return correct<Boolean> TRUE si le type est bon / FALSE si le type ne match pas</span></td></tr>
|
||||
<tr><td><div align="right"><a name="104"></a><a href="#104">104</a></div></td><td class="codeLine"><span class="comment"> *</span></td></tr>
|
||||
<tr><td><div align="right"><a name="105"></a><a href="#105">105</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="106"></a><a href="#106">106</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">checkParam</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">,</span><span class="default"> </span><span class="default">$dbtype</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="107"></a><a href="#107">107</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [1] on vérifie que $dbtype est un String</span></td></tr>
|
||||
<tr><td><div align="right"><a name="108"></a><a href="#108">108</a></div></td><td class="codeLine"><span class="comment"> =============================================================*/</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="109"></a><a href="#109">109</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$dbtype</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span></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>
|
||||
<tr><td><div align="right"><a name="112"></a><a href="#112">112</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [2] Vérifications</span></td></tr>
|
||||
<tr><td><div align="right"><a name="113"></a><a href="#113">113</a></div></td><td class="codeLine"><span class="comment"> =============================================================*/</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="114"></a><a href="#114">114</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">true</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// contiendra VRAI si la vérification s'avère correcte</span></td></tr>
|
||||
<tr><td><div align="right"><a name="115"></a><a href="#115">115</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="116"></a><a href="#116">116</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">switch</span><span class="keyword">(</span><span class="default">$dbtype</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="117"></a><a href="#117">117</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// [1] 'M' / 'F' </span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="118"></a><a href="#118">118</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'Civilité'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="119"></a><a href="#119">119</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">in_array</span><span class="keyword">(</span><span class="keyword">array</span><span class="keyword">(</span><span class="default">'M'</span><span class="keyword">,</span><span class="default"> </span><span class="default">'F'</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">$variable</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="120"></a><a href="#120">120</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="121"></a><a href="#121">121</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="122"></a><a href="#122">122</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// [2] Nom de patient </span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="123"></a><a href="#123">123</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'Nom'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="124"></a><a href="#124">124</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">in_array</span><span class="keyword">(</span><span class="keyword">array</span><span class="keyword">(</span><span class="default">'M'</span><span class="keyword">,</span><span class="default"> </span><span class="default">'F'</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">$variable</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="125"></a><a href="#125">125</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="126"></a><a href="#126">126</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="127"></a><a href="#127">127</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="128"></a><a href="#128">128</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// [N] Type inconnu</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="129"></a><a href="#129">129</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">default</span><span class="keyword">:</span><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="130"></a><a href="#130">130</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"></td></tr>
|
||||
<tr><td><div align="right"><a name="133"></a><a href="#133">133</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [3] On retourne le résultat de la vérif</span></td></tr>
|
||||
<tr><td><div align="right"><a name="134"></a><a href="#134">134</a></div></td><td class="codeLine"><span class="comment"> =============================================================*/</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="135"></a><a href="#135">135</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$checker</span><span class="keyword">;</span></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="warning"><td><div align="right"><a name="137"></a><a href="#137">137</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="141"></a><a href="#141">141</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="142"></a><a href="#142">142</a></div></td><td class="codeLine"><span class="default">?></span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<footer>
|
||||
<hr/>
|
||||
<h4>Legend</h4>
|
||||
<p>
|
||||
<span class="success"><strong>Executed</strong></span>
|
||||
<span class="danger"><strong>Not Executed</strong></span>
|
||||
<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 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 12:35:41 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="js/holder.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var $window = $(window)
|
||||
, $top_link = $('#toplink')
|
||||
, $body = $('body, html')
|
||||
, offset = $('#code').offset().top;
|
||||
|
||||
$top_link.hide().click(function(event) {
|
||||
event.preventDefault();
|
||||
$body.animate({scrollTop:0}, 800);
|
||||
});
|
||||
|
||||
$window.scroll(function() {
|
||||
if($window.scrollTop() > offset) {
|
||||
$top_link.fadeIn();
|
||||
} else {
|
||||
$top_link.fadeOut();
|
||||
}
|
||||
}).scroll();
|
||||
|
||||
$('.popin').popover({trigger: 'hover'});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -57,7 +57,7 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 2</div></td>
|
||||
<td class="danger small"><div align="right">0 / 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">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
|
@ -66,7 +66,7 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 3</div></td>
|
||||
<td class="danger small"><div align="right">0 / 30</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -86,8 +86,8 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 2</div></td>
|
||||
<td class="danger small">6</td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">72</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -95,11 +95,11 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 3</div></td>
|
||||
<td class="danger small"><div align="right">0 / 30</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#13"><abbr title="__construct()">__construct</abbr></a></td>
|
||||
<td class="danger" colspan="4"> <a href="#12"><abbr title="getStats()">getStats</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -108,7 +108,7 @@
|
|||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2</td>
|
||||
<td class="danger small">72</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -116,28 +116,7 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#17"><abbr title="getStats()">getStats</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small"><div align="right">0 / 30</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
@ -155,18 +134,45 @@
|
|||
<tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">StatsRepo</span></td></tr>
|
||||
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">private</span><span class="default"> </span><span class="default">$connexion</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">__construct</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">connexion</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getStats</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"></td></tr>
|
||||
<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"><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getStats</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$patients</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">PatientRepo</span><span class="default">::</span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$homme</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">[</span><span class="default">'25-'</span><span class="default">=></span><span class="default">0</span><span class="keyword">,</span><span class="default">'25-50'</span><span class="default">=></span><span class="default">0</span><span class="keyword">,</span><span class="default">'50+'</span><span class="default">=></span><span class="default">0</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$femme</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">[</span><span class="default">'25-'</span><span class="default">=></span><span class="default">0</span><span class="keyword">,</span><span class="default">'25-50'</span><span class="default">=></span><span class="default">0</span><span class="keyword">,</span><span class="default">'50+'</span><span class="default">=></span><span class="default">0</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">foreach</span><span class="keyword">(</span><span class="default">$patients</span><span class="default"> </span><span class="keyword">as</span><span class="default"> </span><span class="default">$key</span><span class="default">=></span><span class="default">$patient</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'DateNaissance'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$age</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y'</span><span class="keyword">,</span><span class="default">time</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">-</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$age</span><span class="default"> </span><span class="keyword">-</span><span class="default"> </span><span class="default">1970</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">switch</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'Civilite'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'M'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="keyword"><</span><span class="default">25</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$homme</span><span class="keyword">[</span><span class="default">'25-'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">elseif</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="keyword"><</span><span class="default">50</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$homme</span><span class="keyword">[</span><span class="default">'25-50'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">else</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$homme</span><span class="keyword">[</span><span class="default">'50+'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'F'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="keyword"><</span><span class="default">25</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$femme</span><span class="keyword">[</span><span class="default">'25-'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">elseif</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="keyword"><</span><span class="default">50</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$femme</span><span class="keyword">[</span><span class="default">'25-50'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">else</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$femme</span><span class="keyword">[</span><span class="default">'50+'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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="danger"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="keyword">[</span><span class="default">'H'</span><span class="default">=></span><span class="default">$homme</span><span class="keyword">,</span><span class="default">'F'</span><span class="default">=></span><span class="default">$femme</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"></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"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -179,7 +185,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 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0RC7</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Tue Dec 8 8:28:46 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 11:50:18 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Dashboard for /home/seekdasky/git/projetphp/repositories/repos</title>
|
||||
<title>Dashboard for /home/seekdasky/git/projetphp/repositories</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css/nv.d3.min.css" rel="stylesheet">
|
||||
|
@ -18,7 +18,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="index.html">/home/seekdasky/git/projetphp/repositories/repos</a></li>
|
||||
<li><a href="index.html">/home/seekdasky/git/projetphp/repositories</a></li>
|
||||
<li class="active">(Dashboard)</li>
|
||||
|
||||
</ol>
|
||||
|
@ -58,8 +58,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="StatsRepo.php.html#9">StatsRepo</a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">46%</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#3">StaticRepo</a></td><td class="text-right">58%</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -76,7 +75,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">14</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#3">StaticRepo</a></td><td class="text-right">62</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -114,13 +113,12 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="RDVRepo.php.html#19"><abbr title="RDVRepo::getByDate">getByDate</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#45"><abbr title="RDVRepo::updateDateTime">updateDateTime</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#52"><abbr title="RDVRepo::getByPatientAndDate">getByPatientAndDate</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="StatsRepo.php.html#13"><abbr title="StatsRepo::__construct">__construct</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="StatsRepo.php.html#17"><abbr title="StatsRepo::getStats">getStats</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">83%</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#32"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">88%</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#11"><abbr title="StaticRepo::__construct">__construct</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#106"><abbr title="StaticRepo::checkParam">checkParam</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="repos/MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">83%</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#45"><abbr title="StaticRepo::delNumeric">delNumeric</abbr></a></td><td class="text-right">85%</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#59"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">85%</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#31"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">88%</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -137,8 +135,11 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#32"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#106"><abbr title="StaticRepo::checkParam">checkParam</abbr></a></td><td class="text-right">72</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#45"><abbr title="StaticRepo::delNumeric">delNumeric</abbr></a></td><td class="text-right">10</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#59"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">4</td></tr>
|
||||
<tr><td><a href="repos/MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#31"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -148,7 +149,7 @@
|
|||
<footer>
|
||||
<hr/>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0RC7</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Tue Dec 8 8:28:46 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 12:35:41 UTC 2015.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
@ -169,7 +170,7 @@ $(document).ready(function() {
|
|||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#classCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([1,0,0,0,0,1,0,0,0,0,2,0], "Class Coverage"))
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,1,0,0,0,4,0], "Class Coverage"))
|
||||
.transition().duration(500).call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
@ -187,7 +188,7 @@ $(document).ready(function() {
|
|||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#methodCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([5,0,0,0,0,0,0,0,0,2,1,11], "Method Coverage"))
|
||||
.datum(getCoverageDistributionData([2,0,0,0,0,0,0,0,0,4,2,17], "Method Coverage"))
|
||||
.transition().duration(500).call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
@ -237,7 +238,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Cyclomatic Complexity');
|
||||
|
||||
d3.select('#classComplexity svg')
|
||||
.datum(getComplexityData([[94.736842105263,6,"<a href=\"MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[96.666666666667,7,"<a href=\"PatientRepo.php.html#9\">PatientRepo<\/a>"],[46.428571428571,7,"<a href=\"RDVRepo.php.html#9\">RDVRepo<\/a>"],[0,2,"<a href=\"StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.datum(getComplexityData([[58.064516129032,23,"<a href=\"StaticRepo.php.html#3\">StaticRepo<\/a>"],[95.238095238095,7,"<a href=\"repos\/MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[96.428571428571,7,"<a href=\"repos\/PatientRepo.php.html#9\">PatientRepo<\/a>"],[92.682926829268,11,"<a href=\"repos\/RDVRepo.php.html#9\">RDVRepo<\/a>"],[91.304347826087,8,"<a href=\"repos\/StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
@ -261,7 +262,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Method Complexity');
|
||||
|
||||
d3.select('#methodComplexity svg')
|
||||
.datum(getComplexityData([[100,1,"<a href=\"MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[83.333333333333,2,"<a href=\"MedecinRepo.php.html#19\">MedecinRepo::add<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#28\">MedecinRepo::delete<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#33\">MedecinRepo::search<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#41\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#13\">PatientRepo::__construct<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#17\">PatientRepo::getById<\/a>"],[93.75,2,"<a href=\"PatientRepo.php.html#24\">PatientRepo::add<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#46\">PatientRepo::delete<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#53\">PatientRepo::updateMedecinTraitant<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#61\">PatientRepo::search<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[0,1,"<a href=\"RDVRepo.php.html#19\">RDVRepo::getByDate<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#27\">RDVRepo::delete<\/a>"],[88.888888888889,2,"<a href=\"RDVRepo.php.html#32\">RDVRepo::add<\/a>"],[0,1,"<a href=\"RDVRepo.php.html#45\">RDVRepo::updateDateTime<\/a>"],[0,1,"<a href=\"RDVRepo.php.html#52\">RDVRepo::getByPatientAndDate<\/a>"],[0,1,"<a href=\"StatsRepo.php.html#13\">StatsRepo::__construct<\/a>"],[0,1,"<a href=\"StatsRepo.php.html#17\">StatsRepo::getStats<\/a>"]], 'Method Complexity'))
|
||||
.datum(getComplexityData([[0,1,"<a href=\"StaticRepo.php.html#11\">StaticRepo::__construct<\/a>"],[100,3,"<a href=\"StaticRepo.php.html#18\">StaticRepo::getConnexion<\/a>"],[100,1,"<a href=\"StaticRepo.php.html#31\">StaticRepo::testConnexion<\/a>"],[85.714285714286,10,"<a href=\"StaticRepo.php.html#45\">StaticRepo::delNumeric<\/a>"],[0,8,"<a href=\"StaticRepo.php.html#106\">StaticRepo::checkParam<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[83.333333333333,2,"<a href=\"repos\/MedecinRepo.php.html#19\">MedecinRepo::add<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#28\">MedecinRepo::delete<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#33\">MedecinRepo::search<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#41\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#51\">MedecinRepo::getAll<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#17\">PatientRepo::getById<\/a>"],[93.75,2,"<a href=\"repos\/PatientRepo.php.html#24\">PatientRepo::add<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#46\">PatientRepo::delete<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#53\">PatientRepo::updateMedecinTraitant<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#60\">PatientRepo::search<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#68\">PatientRepo::getAll<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#19\">RDVRepo::getByDate<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#26\">RDVRepo::delete<\/a>"],[88.888888888889,2,"<a href=\"repos\/RDVRepo.php.html#31\">RDVRepo::add<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#44\">RDVRepo::updateDateTime<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#51\">RDVRepo::getByPatientAndDate<\/a>"],[85.714285714286,4,"<a href=\"repos\/RDVRepo.php.html#59\">RDVRepo::getAll<\/a>"],[91.304347826087,8,"<a href=\"repos\/StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"]], 'Method Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Code Coverage for /home/seekdasky/git/projetphp/repositories/repos</title>
|
||||
<title>Code Coverage for /home/seekdasky/git/projetphp/repositories</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
|
@ -17,7 +17,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li class="active">/home/seekdasky/git/projetphp/repositories/repos</li>
|
||||
<li class="active">/home/seekdasky/git/projetphp/repositories</li>
|
||||
<li>(<a href="dashboard.html">Dashboard</a>)</li>
|
||||
|
||||
</ol>
|
||||
|
@ -42,6 +42,42 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td class="warning">Total</td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="86.11" aria-valuemin="0" aria-valuemax="100" style="width: 86.11%">
|
||||
<span class="sr-only">86.11% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">86.11%</div></td>
|
||||
<td class="warning small"><div align="right">124 / 144</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="68.00" aria-valuemin="0" aria-valuemax="100" style="width: 68.00%">
|
||||
<span class="sr-only">68.00% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">68.00%</div></td>
|
||||
<td class="warning small"><div align="right">17 / 25</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 5</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-folder-open"></span> <a href="repos/index.html">repos</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="93.81" aria-valuemin="0" aria-valuemax="100" style="width: 93.81%">
|
||||
<span class="sr-only">93.81% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">93.81%</div></td>
|
||||
<td class="success small"><div align="right">106 / 113</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="75.00" aria-valuemin="0" aria-valuemax="100" style="width: 75.00%">
|
||||
<span class="sr-only">75.00% covered (warning)</span>
|
||||
|
@ -49,15 +85,7 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">75.00%</div></td>
|
||||
<td class="warning small"><div align="right">60 / 80</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="57.89" aria-valuemin="0" aria-valuemax="100" style="width: 57.89%">
|
||||
<span class="sr-only">57.89% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">57.89%</div></td>
|
||||
<td class="warning small"><div align="right">11 / 19</div></td>
|
||||
<td class="warning small"><div align="right">15 / 20</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -69,107 +97,23 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-file"></span> <a href="MedecinRepo.php.html">MedecinRepo.php</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="94.74" aria-valuemin="0" aria-valuemax="100" style="width: 94.74%">
|
||||
<span class="sr-only">94.74% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">94.74%</div></td>
|
||||
<td class="success small"><div align="right">18 / 19</div></td>
|
||||
<td class="warning"><span class="glyphicon glyphicon-file"></span> <a href="StaticRepo.php.html">StaticRepo.php</a></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="80.00" aria-valuemin="0" aria-valuemax="100" style="width: 80.00%">
|
||||
<span class="sr-only">80.00% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="58.06" aria-valuemin="0" aria-valuemax="100" style="width: 58.06%">
|
||||
<span class="sr-only">58.06% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">80.00%</div></td>
|
||||
<td class="warning small"><div align="right">4 / 5</div></td>
|
||||
<td class="warning small"><div align="right">58.06%</div></td>
|
||||
<td class="warning small"><div align="right">18 / 31</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="40.00" aria-valuemin="0" aria-valuemax="100" style="width: 40.00%">
|
||||
<span class="sr-only">40.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-file"></span> <a href="PatientRepo.php.html">PatientRepo.php</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.67" aria-valuemin="0" aria-valuemax="100" style="width: 96.67%">
|
||||
<span class="sr-only">96.67% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">96.67%</div></td>
|
||||
<td class="success small"><div align="right">29 / 30</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger"><span class="glyphicon glyphicon-file"></span> <a href="RDVRepo.php.html">RDVRepo.php</a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="46.43" aria-valuemin="0" aria-valuemax="100" style="width: 46.43%">
|
||||
<span class="sr-only">46.43% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">46.43%</div></td>
|
||||
<td class="danger small"><div align="right">13 / 28</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="33.33" aria-valuemin="0" aria-valuemax="100" style="width: 33.33%">
|
||||
<span class="sr-only">33.33% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">33.33%</div></td>
|
||||
<td class="danger small"><div align="right">2 / 6</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger"><span class="glyphicon glyphicon-file"></span> <a href="StatsRepo.php.html">StatsRepo.php</a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 3</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 2</div></td>
|
||||
<td class="danger small"><div align="right">40.00%</div></td>
|
||||
<td class="danger small"><div align="right">2 / 5</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -192,7 +136,7 @@
|
|||
<span class="success"><strong>High</strong>: 90% to 100%</span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0RC7</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Tue Dec 8 8:28:46 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 12:35:41 UTC 2015.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,336 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Code Coverage for /home/seekdasky/git/projetphp/repositories/repos/MedecinRepo.php</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="../css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="../css/style.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="../js/html5shiv.min.js"></script>
|
||||
<script src="../js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="../index.html">/home/seekdasky/git/projetphp/repositories</a></li>
|
||||
<li><a href="index.html">repos</a></li>
|
||||
<li class="active">MedecinRepo.php</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
|
||||
<td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td>
|
||||
<td colspan="3"><div align="center"><strong>Lines</strong></div></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="danger">Total</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.24" aria-valuemin="0" aria-valuemax="100" style="width: 95.24%">
|
||||
<span class="sr-only">95.24% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">95.24%</div></td>
|
||||
<td class="success small"><div align="right">20 / 21</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger">MedecinRepo</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small">7</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.24" aria-valuemin="0" aria-valuemax="100" style="width: 95.24%">
|
||||
<span class="sr-only">95.24% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">95.24%</div></td>
|
||||
<td class="success small"><div align="right">20 / 21</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#12"><abbr title="getById($id)">getById</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">3 / 3</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#19"><abbr title="add($civilite,$prenom,$nom)">add</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2.02</td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#28"><abbr title="delete($idMedecin)">delete</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#33"><abbr title="search($nom,$prenom)">search</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">4 / 4</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#41"><abbr title="getPatients($idMedecin)">getPatients</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">4 / 4</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#51"><abbr title="getAll()">getAll</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<table id="code" class="table table-borderless table-condensed">
|
||||
<tbody>
|
||||
<tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine"><span class="default"><?php</span></td></tr>
|
||||
<tr><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"><span class="comment">/**</span></td></tr>
|
||||
<tr><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine"><span class="comment"> * Created by PhpStorm.</span></td></tr>
|
||||
<tr><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine"><span class="comment"> * User: seekdasky</span></td></tr>
|
||||
<tr><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine"><span class="comment"> * Date: 02/12/15</span></td></tr>
|
||||
<tr><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine"><span class="comment"> * Time: 12:36</span></td></tr>
|
||||
<tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">MedecinRepo</span></td></tr>
|
||||
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getById</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 13" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 14" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 15" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$civilite</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">,</span><span class="default">$nom</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 20" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO Medecin VALUES (DEFAULT,:civilite,:prenom,:nom)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 21" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'civilite'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$civilite</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 22" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 23" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 24" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="default"> </span><span class="default">!=</span><span class="default"> </span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 29" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM Medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 30" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">search</span><span class="keyword">(</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 34" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin WHERE Nom LIKE :nom AND Prenom LIKE :prenom'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 35" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 36" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 38" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getPatients</span><span class="keyword">(</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></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="covered-by-large-tests popin" data-title="1 test covers line 43" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT Patient.* FROM Patient,Medecin</span></td></tr>
|
||||
<tr><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default"> WHERE Medecin.Id = :id</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 45" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"><span class="default"> AND Medecin.Id = Patient.MedecinTraitant'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 47" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 48" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 53" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">query</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin ORDER BY nom, prenom ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<footer>
|
||||
<hr/>
|
||||
<h4>Legend</h4>
|
||||
<p>
|
||||
<span class="success"><strong>Executed</strong></span>
|
||||
<span class="danger"><strong>Not Executed</strong></span>
|
||||
<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 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 12:35:41 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../js/holder.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var $window = $(window)
|
||||
, $top_link = $('#toplink')
|
||||
, $body = $('body, html')
|
||||
, offset = $('#code').offset().top;
|
||||
|
||||
$top_link.hide().click(function(event) {
|
||||
event.preventDefault();
|
||||
$body.animate({scrollTop:0}, 800);
|
||||
});
|
||||
|
||||
$window.scroll(function() {
|
||||
if($window.scrollTop() > offset) {
|
||||
$top_link.fadeIn();
|
||||
} else {
|
||||
$top_link.fadeOut();
|
||||
}
|
||||
}).scroll();
|
||||
|
||||
$('.popin').popover({trigger: 'hover'});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,353 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Code Coverage for /home/seekdasky/git/projetphp/repositories/repos/PatientRepo.php</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="../css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="../css/style.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="../js/html5shiv.min.js"></script>
|
||||
<script src="../js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="../index.html">/home/seekdasky/git/projetphp/repositories</a></li>
|
||||
<li><a href="index.html">repos</a></li>
|
||||
<li class="active">PatientRepo.php</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
|
||||
<td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td>
|
||||
<td colspan="3"><div align="center"><strong>Lines</strong></div></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="danger">Total</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.43" aria-valuemin="0" aria-valuemax="100" style="width: 96.43%">
|
||||
<span class="sr-only">96.43% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">96.43%</div></td>
|
||||
<td class="success small"><div align="right">27 / 28</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger">PatientRepo</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small">7</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.43" aria-valuemin="0" aria-valuemax="100" style="width: 96.43%">
|
||||
<span class="sr-only">96.43% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">96.43%</div></td>
|
||||
<td class="success small"><div align="right">27 / 28</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#17"><abbr title="getById($id)">getById</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">3 / 3</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#24"><abbr title="add($civilite,$prenom,$nom,$adresse,$adresse2,$ville,$codePostal,$dateNaissance,$lieuNaissance,$numSecu,$medecinTraitant = null)">add</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2.00</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="93.75" aria-valuemin="0" aria-valuemax="100" style="width: 93.75%">
|
||||
<span class="sr-only">93.75% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">93.75%</div></td>
|
||||
<td class="success small"><div align="right">15 / 16</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#46"><abbr title="delete($idPatient)">delete</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#53"><abbr title="updateMedecinTraitant($idPatient,$idMedecin)">updateMedecinTraitant</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#60"><abbr title="search($nom,$prenom)">search</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">3 / 3</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#68"><abbr title="getAll()">getAll</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<table id="code" class="table table-borderless table-condensed">
|
||||
<tbody>
|
||||
<tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine"><span class="default"><?php</span></td></tr>
|
||||
<tr><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"><span class="comment">/**</span></td></tr>
|
||||
<tr><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine"><span class="comment"> * Created by PhpStorm.</span></td></tr>
|
||||
<tr><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine"><span class="comment"> * User: seekdasky</span></td></tr>
|
||||
<tr><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine"><span class="comment"> * Date: 02/12/15</span></td></tr>
|
||||
<tr><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine"><span class="comment"> * Time: 12:36</span></td></tr>
|
||||
<tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">PatientRepo</span></td></tr>
|
||||
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// private $connexion;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// public function __construct(){</span></td></tr>
|
||||
<tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// StaticRepo::getConnexion() = StaticRepo::getConnexion();</span></td></tr>
|
||||
<tr><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// }</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getById</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 18" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 19" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 20" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$civilite</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">,</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$adresse</span><span class="keyword">,</span><span class="default">$adresse2</span><span class="keyword">,</span><span class="default">$ville</span><span class="keyword">,</span><span class="default">$codePostal</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">,</span><span class="default">$lieuNaissance</span><span class="keyword">,</span><span class="default">$numSecu</span><span class="keyword">,</span><span class="default">$medecinTraitant</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 26" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 27" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">Date</span><span class="keyword">(</span><span class="default">'o-m-d'</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 29" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO Patient VALUES (:civilite,:nom,:prenom,:adresse,:adresse2,:ville,:codePostal,:dateNaissance,:lieuNaissance,:numSecu,DEFAULT,:medecin)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 30" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'civilite'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$civilite</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 31" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 32" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 33" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'adresse'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$adresse</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 34" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'adresse2'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$adresse2</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 35" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'ville'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$ville</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 36" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'codePostal'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$codePostal</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 37" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'dateNaissance'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$dateNaissance</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 38" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'lieuNaissance'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$lieuNaissance</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 39" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'numSecu'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$numSecu</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 40" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$medecinTraitant</span><span class="default"> </span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 41" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 48" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM Patient WHERE Patient.Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 49" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">updateMedecinTraitant</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'UPDATE Patient SET MedecinTraitant = :medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 56" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">,</span><span class="default"> </span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">search</span><span class="keyword">(</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">)</span><span class="keyword">{</span></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="covered-by-large-tests popin" data-title="1 test covers line 62" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Nom LIKE :nom AND Prenom LIKE :prenom'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 63" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 64" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></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="warning"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 70" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">query</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient ORDER BY nom, prenom ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 72" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></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="warning"><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<footer>
|
||||
<hr/>
|
||||
<h4>Legend</h4>
|
||||
<p>
|
||||
<span class="success"><strong>Executed</strong></span>
|
||||
<span class="danger"><strong>Not Executed</strong></span>
|
||||
<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 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 12:35:41 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../js/holder.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var $window = $(window)
|
||||
, $top_link = $('#toplink')
|
||||
, $body = $('body, html')
|
||||
, offset = $('#code').offset().top;
|
||||
|
||||
$top_link.hide().click(function(event) {
|
||||
event.preventDefault();
|
||||
$body.animate({scrollTop:0}, 800);
|
||||
});
|
||||
|
||||
$window.scroll(function() {
|
||||
if($window.scrollTop() > offset) {
|
||||
$top_link.fadeIn();
|
||||
} else {
|
||||
$top_link.fadeOut();
|
||||
}
|
||||
}).scroll();
|
||||
|
||||
$('.popin').popover({trigger: 'hover'});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,376 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Code Coverage for /home/seekdasky/git/projetphp/repositories/repos/RDVRepo.php</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="../css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="../css/style.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="../js/html5shiv.min.js"></script>
|
||||
<script src="../js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="../index.html">/home/seekdasky/git/projetphp/repositories</a></li>
|
||||
<li><a href="index.html">repos</a></li>
|
||||
<li class="active">RDVRepo.php</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
|
||||
<td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td>
|
||||
<td colspan="3"><div align="center"><strong>Lines</strong></div></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="danger">Total</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="71.43" aria-valuemin="0" aria-valuemax="100" style="width: 71.43%">
|
||||
<span class="sr-only">71.43% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">71.43%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 7</div></td>
|
||||
<td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="92.68" aria-valuemin="0" aria-valuemax="100" style="width: 92.68%">
|
||||
<span class="sr-only">92.68% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">92.68%</div></td>
|
||||
<td class="success small"><div align="right">38 / 41</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger">RDVRepo</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="71.43" aria-valuemin="0" aria-valuemax="100" style="width: 71.43%">
|
||||
<span class="sr-only">71.43% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">71.43%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 7</div></td>
|
||||
<td class="warning small">11.05</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="92.68" aria-valuemin="0" aria-valuemax="100" style="width: 92.68%">
|
||||
<span class="sr-only">92.68% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">92.68%</div></td>
|
||||
<td class="success small"><div align="right">38 / 41</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#12"><abbr title="getById($id)">getById</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">3 / 3</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#19"><abbr title="getByDate($date)">getByDate</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">4 / 4</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#26"><abbr title="delete($idRDV)">delete</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">2 / 2</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#31"><abbr title="add($date,$duree,$idPatient,$idMedecin)">add</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2.01</td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="88.89" aria-valuemin="0" aria-valuemax="100" style="width: 88.89%">
|
||||
<span class="sr-only">88.89% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">88.89%</div></td>
|
||||
<td class="warning small"><div align="right">8 / 9</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#44"><abbr title="updateDateTime($idRDV,$dateTime)">updateDateTime</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">4 / 4</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#51"><abbr title="getByPatientAndDate($idPatient,$date)">getByPatientAndDate</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">5 / 5</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#59"><abbr title="getAll($date = 0)">getAll</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">4.05</td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="85.71" aria-valuemin="0" aria-valuemax="100" style="width: 85.71%">
|
||||
<span class="sr-only">85.71% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">85.71%</div></td>
|
||||
<td class="warning small"><div align="right">12 / 14</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<table id="code" class="table table-borderless table-condensed">
|
||||
<tbody>
|
||||
<tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine"><span class="default"><?php</span></td></tr>
|
||||
<tr><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"><span class="comment">/**</span></td></tr>
|
||||
<tr><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine"><span class="comment"> * Created by PhpStorm.</span></td></tr>
|
||||
<tr><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine"><span class="comment"> * User: seekdasky</span></td></tr>
|
||||
<tr><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine"><span class="comment"> * Date: 02/12/15</span></td></tr>
|
||||
<tr><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine"><span class="comment"> * Time: 12:36</span></td></tr>
|
||||
<tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">RDVRepo</span></td></tr>
|
||||
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="default"> </span></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getById</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 13" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE RDV.id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 14" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 15" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getByDate</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 20" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 21" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE DATE(DateRDV) = :date ORDER BY DateRDV ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 22" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 23" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idRDV</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 27" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM RDV WHERE RDV.id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 28" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idRDV</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">,</span><span class="default">$duree</span><span class="keyword">,</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 32" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d H:i:s'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 33" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$duree</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'H:i:s'</span><span class="keyword">,</span><span class="default">$duree</span><span class="keyword">*</span><span class="default">60</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 34" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO RDV VALUES (DEFAULT,:date,:duree,:patient,:medecin)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 35" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 36" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'duree'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$duree</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 37" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'patient'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 38" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></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="covered-by-large-tests popin" data-title="1 test covers line 40" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="default"> </span><span class="default">!=</span><span class="default"> </span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">updateDateTime</span><span class="keyword">(</span><span class="default">$idRDV</span><span class="keyword">,</span><span class="default">$dateTime</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 45" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d H:i:s'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$dateTime</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 46" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'UPDATE RDV SET DateRDV = :date WHERE id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 47" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 48" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idRDV</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getByPatientAndDate</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 52" data-content="<ul><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 53" data-content="<ul><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE Patient_Id=:patient AND DATE(DateRDV)=:date'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 54" data-content="<ul><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'patient'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$date</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 56" data-content="<ul><li class="danger">RDVRepoTest::testGetByPAtientAndDate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAll</span><span class="keyword">(</span><span class="default">$date</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">0</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 60" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateTime</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d'</span><span class="keyword">,</span><span class="default">time</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">switch</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 62" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="keyword">-</span><span class="default">1</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 63" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE DATE(DateRDV) <= :date ORDER BY DateRDV ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 64" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$dateTime</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 65" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">0</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 67" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV ORDER BY DateRDV ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 68" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 69" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">1</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 71" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM RDV WHERE DATE(DateRDV) >= :date ORDER BY DateRDV ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 72" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$dateTime</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 73" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="73"></a><a href="#73">73</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 75" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="75"></a><a href="#75">75</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="76"></a><a href="#76">76</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="78"></a><a href="#78">78</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<footer>
|
||||
<hr/>
|
||||
<h4>Legend</h4>
|
||||
<p>
|
||||
<span class="success"><strong>Executed</strong></span>
|
||||
<span class="danger"><strong>Not Executed</strong></span>
|
||||
<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 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 12:35:41 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../js/holder.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var $window = $(window)
|
||||
, $top_link = $('#toplink')
|
||||
, $body = $('body, html')
|
||||
, offset = $('#code').offset().top;
|
||||
|
||||
$top_link.hide().click(function(event) {
|
||||
event.preventDefault();
|
||||
$body.animate({scrollTop:0}, 800);
|
||||
});
|
||||
|
||||
$window.scroll(function() {
|
||||
if($window.scrollTop() > offset) {
|
||||
$top_link.fadeIn();
|
||||
} else {
|
||||
$top_link.fadeOut();
|
||||
}
|
||||
}).scroll();
|
||||
|
||||
$('.popin').popover({trigger: 'hover'});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,221 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Code Coverage for /home/seekdasky/git/projetphp/repositories/repos/StatsRepo.php</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="../css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="../css/style.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="../js/html5shiv.min.js"></script>
|
||||
<script src="../js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="../index.html">/home/seekdasky/git/projetphp/repositories</a></li>
|
||||
<li><a href="index.html">repos</a></li>
|
||||
<li class="active">StatsRepo.php</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
|
||||
<td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td>
|
||||
<td colspan="3"><div align="center"><strong>Lines</strong></div></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="danger">Total</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="91.30" aria-valuemin="0" aria-valuemax="100" style="width: 91.30%">
|
||||
<span class="sr-only">91.30% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">91.30%</div></td>
|
||||
<td class="success small"><div align="right">21 / 23</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger">StatsRepo</td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">8.04</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="91.30" aria-valuemin="0" aria-valuemax="100" style="width: 91.30%">
|
||||
<span class="sr-only">91.30% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">91.30%</div></td>
|
||||
<td class="success small"><div align="right">21 / 23</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#12"><abbr title="getAgePatient()">getAgePatient</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">8.04</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="91.30" aria-valuemin="0" aria-valuemax="100" style="width: 91.30%">
|
||||
<span class="sr-only">91.30% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">91.30%</div></td>
|
||||
<td class="success small"><div align="right">21 / 23</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<table id="code" class="table table-borderless table-condensed">
|
||||
<tbody>
|
||||
<tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine"><span class="default"><?php</span></td></tr>
|
||||
<tr><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"><span class="comment">/**</span></td></tr>
|
||||
<tr><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine"><span class="comment"> * Created by PhpStorm.</span></td></tr>
|
||||
<tr><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine"><span class="comment"> * User: seekdasky</span></td></tr>
|
||||
<tr><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine"><span class="comment"> * Date: 02/12/15</span></td></tr>
|
||||
<tr><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine"><span class="comment"> * Time: 12:36</span></td></tr>
|
||||
<tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">StatsRepo</span></td></tr>
|
||||
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAgePatient</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 13" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$patients</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">PatientRepo</span><span class="default">::</span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 15" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$homme</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">[</span><span class="default">'25-'</span><span class="default">=></span><span class="default">0</span><span class="keyword">,</span><span class="default">'25-50'</span><span class="default">=></span><span class="default">0</span><span class="keyword">,</span><span class="default">'50+'</span><span class="default">=></span><span class="default">0</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 16" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$femme</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">[</span><span class="default">'25-'</span><span class="default">=></span><span class="default">0</span><span class="keyword">,</span><span class="default">'25-50'</span><span class="default">=></span><span class="default">0</span><span class="keyword">,</span><span class="default">'50+'</span><span class="default">=></span><span class="default">0</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 18" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">foreach</span><span class="keyword">(</span><span class="default">$patients</span><span class="default"> </span><span class="keyword">as</span><span class="default"> </span><span class="default">$key</span><span class="default">=></span><span class="default">$patient</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 19" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'DateNaissance'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 20" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$age</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y'</span><span class="keyword">,</span><span class="default">time</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">-</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 21" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$age</span><span class="default"> </span><span class="keyword">-</span><span class="default"> </span><span class="default">1970</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 23" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">switch</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'Civilite'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'M'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 25" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="keyword"><</span><span class="default">25</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 26" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$homme</span><span class="keyword">[</span><span class="default">'25-'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 27" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">elseif</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="keyword"><</span><span class="default">50</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 28" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$homme</span><span class="keyword">[</span><span class="default">'25-50'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">else</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 30" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$homme</span><span class="keyword">[</span><span class="default">'50+'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 32" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'F'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 34" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="keyword"><</span><span class="default">25</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 35" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$femme</span><span class="keyword">[</span><span class="default">'25-'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 36" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">elseif</span><span class="keyword">(</span><span class="default">$patient</span><span class="keyword">[</span><span class="default">'age'</span><span class="keyword">]</span><span class="keyword"><</span><span class="default">50</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 37" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$femme</span><span class="keyword">[</span><span class="default">'25-50'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">else</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 39" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$femme</span><span class="keyword">[</span><span class="default">'50+'</span><span class="keyword">]</span><span class="default">++</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 41" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></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="covered-by-large-tests popin" data-title="1 test covers line 45" data-content="<ul><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="keyword">[</span><span class="default">'H'</span><span class="default">=></span><span class="default">$homme</span><span class="keyword">,</span><span class="default">'F'</span><span class="default">=></span><span class="default">$femme</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"></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"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<footer>
|
||||
<hr/>
|
||||
<h4>Legend</h4>
|
||||
<p>
|
||||
<span class="success"><strong>Executed</strong></span>
|
||||
<span class="danger"><strong>Not Executed</strong></span>
|
||||
<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 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 12:35:41 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../js/holder.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var $window = $(window)
|
||||
, $top_link = $('#toplink')
|
||||
, $body = $('body, html')
|
||||
, offset = $('#code').offset().top;
|
||||
|
||||
$top_link.hide().click(function(event) {
|
||||
event.preventDefault();
|
||||
$body.animate({scrollTop:0}, 800);
|
||||
});
|
||||
|
||||
$window.scroll(function() {
|
||||
if($window.scrollTop() > offset) {
|
||||
$top_link.fadeIn();
|
||||
} else {
|
||||
$top_link.fadeOut();
|
||||
}
|
||||
}).scroll();
|
||||
|
||||
$('.popin').popover({trigger: 'hover'});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,293 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Dashboard for /home/seekdasky/git/projetphp/repositories/repos</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="../css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="../css/nv.d3.min.css" rel="stylesheet">
|
||||
<link href="../css/style.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="../js/html5shiv.min.js"></script>
|
||||
<script src="../js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="../index.html">/home/seekdasky/git/projetphp/repositories</a></li>
|
||||
<li><a href="index.html">repos</a></li>
|
||||
<li class="active">(Dashboard)</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>Classes</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h3>Coverage Distribution</h3>
|
||||
<div id="classCoverageDistribution" style="height: 300px;">
|
||||
<svg></svg>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h3>Complexity</h3>
|
||||
<div id="classComplexity" style="height: 300px;">
|
||||
<svg></svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h3>Insufficient Coverage</h3>
|
||||
<div class="scrollbox">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Class</th>
|
||||
<th class="text-right">Coverage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h3>Project Risks</h3>
|
||||
<div class="scrollbox">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Class</th>
|
||||
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>Methods</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h3>Coverage Distribution</h3>
|
||||
<div id="methodCoverageDistribution" style="height: 300px;">
|
||||
<svg></svg>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h3>Complexity</h3>
|
||||
<div id="methodComplexity" style="height: 300px;">
|
||||
<svg></svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h3>Insufficient Coverage</h3>
|
||||
<div class="scrollbox">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th class="text-right">Coverage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">83%</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#59"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">85%</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#31"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">88%</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h3>Project Risks</h3>
|
||||
<div class="scrollbox">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="RDVRepo.php.html#59"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">4</td></tr>
|
||||
<tr><td><a href="MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#31"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
<hr/>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 12:35:41 UTC 2015.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../js/holder.min.js" type="text/javascript"></script>
|
||||
<script src="../js/d3.min.js" type="text/javascript"></script>
|
||||
<script src="../js/nv.d3.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
nv.addGraph(function() {
|
||||
var chart = nv.models.multiBarChart();
|
||||
chart.tooltips(false)
|
||||
.showControls(false)
|
||||
.showLegend(false)
|
||||
.reduceXTicks(false)
|
||||
.staggerLabels(true)
|
||||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#classCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,4,0], "Class Coverage"))
|
||||
.transition().duration(500).call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
||||
return chart;
|
||||
});
|
||||
|
||||
nv.addGraph(function() {
|
||||
var chart = nv.models.multiBarChart();
|
||||
chart.tooltips(false)
|
||||
.showControls(false)
|
||||
.showLegend(false)
|
||||
.reduceXTicks(false)
|
||||
.staggerLabels(true)
|
||||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#methodCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,3,2,15], "Method Coverage"))
|
||||
.transition().duration(500).call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
||||
return chart;
|
||||
});
|
||||
|
||||
function getCoverageDistributionData(data, label) {
|
||||
var labels = [
|
||||
'0%',
|
||||
'0-10%',
|
||||
'10-20%',
|
||||
'20-30%',
|
||||
'30-40%',
|
||||
'40-50%',
|
||||
'50-60%',
|
||||
'60-70%',
|
||||
'70-80%',
|
||||
'80-90%',
|
||||
'90-100%',
|
||||
'100%'
|
||||
];
|
||||
var values = [];
|
||||
$.each(labels, function(key) {
|
||||
values.push({x: labels[key], y: data[key]});
|
||||
});
|
||||
|
||||
return [
|
||||
{
|
||||
key: label,
|
||||
values: values,
|
||||
color: "#4572A7"
|
||||
}
|
||||
];
|
||||
}
|
||||
nv.addGraph(function() {
|
||||
var chart = nv.models.scatterChart()
|
||||
.showDistX(true)
|
||||
.showDistY(true)
|
||||
.showLegend(false)
|
||||
.forceX([0, 100]);
|
||||
chart.tooltipContent(function(key, y, e, graph) {
|
||||
return '<p>' + graph.point.class + '</p>';
|
||||
});
|
||||
|
||||
chart.xAxis.axisLabel('Code Coverage (in percent)');
|
||||
chart.yAxis.axisLabel('Cyclomatic Complexity');
|
||||
|
||||
d3.select('#classComplexity svg')
|
||||
.datum(getComplexityData([[95.238095238095,7,"<a href=\"MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[96.428571428571,7,"<a href=\"PatientRepo.php.html#9\">PatientRepo<\/a>"],[92.682926829268,11,"<a href=\"RDVRepo.php.html#9\">RDVRepo<\/a>"],[91.304347826087,8,"<a href=\"StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
||||
return chart;
|
||||
});
|
||||
|
||||
nv.addGraph(function() {
|
||||
var chart = nv.models.scatterChart()
|
||||
.showDistX(true)
|
||||
.showDistY(true)
|
||||
.showLegend(false)
|
||||
.forceX([0, 100]);
|
||||
chart.tooltipContent(function(key, y, e, graph) {
|
||||
return '<p>' + graph.point.class + '</p>';
|
||||
});
|
||||
|
||||
chart.xAxis.axisLabel('Code Coverage (in percent)');
|
||||
chart.yAxis.axisLabel('Method Complexity');
|
||||
|
||||
d3.select('#methodComplexity svg')
|
||||
.datum(getComplexityData([[100,1,"<a href=\"MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[83.333333333333,2,"<a href=\"MedecinRepo.php.html#19\">MedecinRepo::add<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#28\">MedecinRepo::delete<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#33\">MedecinRepo::search<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#41\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#51\">MedecinRepo::getAll<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#17\">PatientRepo::getById<\/a>"],[93.75,2,"<a href=\"PatientRepo.php.html#24\">PatientRepo::add<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#46\">PatientRepo::delete<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#53\">PatientRepo::updateMedecinTraitant<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#60\">PatientRepo::search<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#68\">PatientRepo::getAll<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#19\">RDVRepo::getByDate<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#26\">RDVRepo::delete<\/a>"],[88.888888888889,2,"<a href=\"RDVRepo.php.html#31\">RDVRepo::add<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#44\">RDVRepo::updateDateTime<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#51\">RDVRepo::getByPatientAndDate<\/a>"],[85.714285714286,4,"<a href=\"RDVRepo.php.html#59\">RDVRepo::getAll<\/a>"],[91.304347826087,8,"<a href=\"StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"]], 'Method Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
||||
return chart;
|
||||
});
|
||||
|
||||
function getComplexityData(data, label) {
|
||||
var values = [];
|
||||
$.each(data, function(key) {
|
||||
var value = Math.round(data[key][0]*100) / 100;
|
||||
values.push({
|
||||
x: value,
|
||||
y: data[key][1],
|
||||
class: data[key][2],
|
||||
size: 0.05,
|
||||
shape: 'diamond'
|
||||
});
|
||||
});
|
||||
|
||||
return [
|
||||
{
|
||||
key: label,
|
||||
values: values,
|
||||
color: "#4572A7"
|
||||
}
|
||||
];
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,204 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Code Coverage for /home/seekdasky/git/projetphp/repositories/repos</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="../css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="../css/style.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="../js/html5shiv.min.js"></script>
|
||||
<script src="../js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="../index.html">/home/seekdasky/git/projetphp/repositories</a></li>
|
||||
<li class="active">repos</li>
|
||||
<li>(<a href="dashboard.html">Dashboard</a>)</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="9"><div align="center"><strong>Code Coverage</strong></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="3"><div align="center"><strong>Lines</strong></div></td>
|
||||
<td colspan="3"><div align="center"><strong>Functions and Methods</strong></div></td>
|
||||
<td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="success">Total</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="93.81" aria-valuemin="0" aria-valuemax="100" style="width: 93.81%">
|
||||
<span class="sr-only">93.81% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">93.81%</div></td>
|
||||
<td class="success small"><div align="right">106 / 113</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="75.00" aria-valuemin="0" aria-valuemax="100" style="width: 75.00%">
|
||||
<span class="sr-only">75.00% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">75.00%</div></td>
|
||||
<td class="warning small"><div align="right">15 / 20</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 4</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-file"></span> <a href="MedecinRepo.php.html">MedecinRepo.php</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.24" aria-valuemin="0" aria-valuemax="100" style="width: 95.24%">
|
||||
<span class="sr-only">95.24% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">95.24%</div></td>
|
||||
<td class="success small"><div align="right">20 / 21</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-file"></span> <a href="PatientRepo.php.html">PatientRepo.php</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.43" aria-valuemin="0" aria-valuemax="100" style="width: 96.43%">
|
||||
<span class="sr-only">96.43% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">96.43%</div></td>
|
||||
<td class="success small"><div align="right">27 / 28</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-file"></span> <a href="RDVRepo.php.html">RDVRepo.php</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="92.68" aria-valuemin="0" aria-valuemax="100" style="width: 92.68%">
|
||||
<span class="sr-only">92.68% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">92.68%</div></td>
|
||||
<td class="success small"><div align="right">38 / 41</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="71.43" aria-valuemin="0" aria-valuemax="100" style="width: 71.43%">
|
||||
<span class="sr-only">71.43% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">71.43%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 7</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-file"></span> <a href="StatsRepo.php.html">StatsRepo.php</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="91.30" aria-valuemin="0" aria-valuemax="100" style="width: 91.30%">
|
||||
<span class="sr-only">91.30% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">91.30%</div></td>
|
||||
<td class="success small"><div align="right">21 / 23</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<footer>
|
||||
<hr/>
|
||||
<h4>Legend</h4>
|
||||
<p>
|
||||
<span class="danger"><strong>Low</strong>: 0% to 50%</span>
|
||||
<span class="warning"><strong>Medium</strong>: 50% to 90%</span>
|
||||
<span class="success"><strong>High</strong>: 90% to 100%</span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Wed Dec 9 12:35:41 UTC 2015.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="../js/holder.min.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -38,14 +38,14 @@ class PatientRepo
|
|||
'lieuNaissance' => $lieuNaissance,
|
||||
'numSecu' => $numSecu,
|
||||
'medecin' => $medecinTraitant ]);
|
||||
if($result){return ['id' => StaticRepo::getConnexion()->lastInsertId()];}
|
||||
if($result){return StaticRepo::getConnexion()->lastInsertId();}
|
||||
else{return false;}
|
||||
|
||||
}
|
||||
|
||||
public static function delete($idPatient){
|
||||
|
||||
$req = StaticRepo::getConnexion()->prepare('DELETE FROM Patient WHERE Id = :id');
|
||||
$req = StaticRepo::getConnexion()->prepare('DELETE FROM Patient WHERE Patient.Id = :id');
|
||||
return $req->execute(['id' => $idPatient]);
|
||||
|
||||
}
|
||||
|
|
|
@ -10,22 +10,21 @@ class RDVRepo
|
|||
{
|
||||
|
||||
public static function getById($id){
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE Id = :id');
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE RDV.id = :id');
|
||||
$req->execute(['id' => $id]);
|
||||
return StaticRepo::delNumeric( $req->fetch(), true );
|
||||
|
||||
}
|
||||
|
||||
public static function getByDate($date){
|
||||
$date = strtotime($date);
|
||||
$date = date('o-m-d',$date);
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(FROM_UNIXTIME(DateRDV)) = :date');
|
||||
$date = date('Y-m-d',strtotime($date));
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(DateRDV) = :date ORDER BY DateRDV ASC');
|
||||
$req->execute(['date' => $date]);
|
||||
return StaticRepo::delNumeric($req->fetchAll());
|
||||
}
|
||||
|
||||
public static function delete($idRDV){
|
||||
$req = StaticRepo::getConnexion()->prepare('DELETE FROM RDV WHERE Id = :id');
|
||||
$req = StaticRepo::getConnexion()->prepare('DELETE FROM RDV WHERE RDV.id = :id');
|
||||
return $req->execute(['id' => $idRDV]);
|
||||
}
|
||||
|
||||
|
@ -43,18 +42,37 @@ class RDVRepo
|
|||
}
|
||||
|
||||
public static function updateDateTime($idRDV,$dateTime){
|
||||
$date = strtotime($dateTime);
|
||||
$date = date('Y-m-d H:i:s',strtotime($dateTime));
|
||||
$req = StaticRepo::getConnexion()->prepare('UPDATE RDV SET DateRDV = :date WHERE id = :id');
|
||||
return $req->execute(['date' => $date,
|
||||
'id' => $idRDV]);
|
||||
}
|
||||
|
||||
public static function getByPatientAndDate($idPatient,$date){
|
||||
$date = strtotime($date);
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE Patient_Id=:patient AND DateRDV=:date');
|
||||
$date = date('Y-m-d',strtotime($date));
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE Patient_Id=:patient AND DATE(DateRDV)=:date');
|
||||
$req->execute(['patient' => $idPatient,
|
||||
'date' => $date]);
|
||||
return StaticRepo::delNumeric($req->fetchAll());
|
||||
}
|
||||
|
||||
public static function getAll($date = 0){
|
||||
$dateTime = date('Y-m-d',time());
|
||||
switch($date){
|
||||
case -1:
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(DateRDV) <= :date ORDER BY DateRDV ASC');
|
||||
$req->execute(['date' => $dateTime]);
|
||||
break;
|
||||
case 0:
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV ORDER BY DateRDV ASC');
|
||||
$req->execute();
|
||||
break;
|
||||
case 1:
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(DateRDV) >= :date ORDER BY DateRDV ASC');
|
||||
$req->execute(['date' => $dateTime]);
|
||||
break;
|
||||
}
|
||||
return StaticRepo::delNumeric($req->fetchAll());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,14 +8,41 @@
|
|||
*/
|
||||
class StatsRepo
|
||||
{
|
||||
private $connexion;
|
||||
|
||||
public function __construct(){
|
||||
$this->connexion = StaticRepo::getConnexion();
|
||||
}
|
||||
public static function getAgePatient(){
|
||||
$patients = PatientRepo::getAll();
|
||||
|
||||
public function getStats(){
|
||||
$homme = ['25-'=>0,'25-50'=>0,'50+'=>0];
|
||||
$femme = ['25-'=>0,'25-50'=>0,'50+'=>0];
|
||||
|
||||
foreach($patients as $key=>$patient){
|
||||
$dateNaissance = strtotime($patient['DateNaissance']);
|
||||
$age = date('Y',time()-$dateNaissance);
|
||||
$patient['age'] = $age - 1970;
|
||||
|
||||
switch($patient['Civilite']){
|
||||
case 'M':
|
||||
if($patient['age']<25){
|
||||
$homme['25-']++;
|
||||
}elseif($patient['age']<50){
|
||||
$homme['25-50']++;
|
||||
}else{
|
||||
$homme['50+']++;
|
||||
}
|
||||
break;
|
||||
case 'F':
|
||||
if($patient['age']<25){
|
||||
$femme['25-']++;
|
||||
}elseif($patient['age']<50){
|
||||
$femme['25-50']++;
|
||||
}else{
|
||||
$femme['50+']++;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return ['H'=>$homme,'F'=>$femme];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: seekdasky
|
||||
* Date: 09/12/15
|
||||
* Time: 11:40
|
||||
*/
|
||||
require_once('autoloader.php');
|
||||
|
||||
var_dump(RDVRepo::getAll(1));
|
|
@ -36,4 +36,8 @@ class MedecinRepoTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals($this->repo->getById(1)['Nom'],'HUFF');
|
||||
}
|
||||
|
||||
public function testGetAll(){
|
||||
$this->assertEquals(count($this->repo->getAll()),100);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -39,4 +39,8 @@ class PatientRepoTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals($this->repo->getById(2)['MedecinTraitant'],$id);
|
||||
}
|
||||
|
||||
public function testGetAll(){
|
||||
$this->assertEquals(count($this->repo->getAll()),100);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
class RDVRepoTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
private $repo;
|
||||
private $id;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
@ -24,15 +23,41 @@ class RDVRepoTest extends PHPUnit_Framework_TestCase
|
|||
$id = $this->repo->add(date('Y-m-d H:i:s',time()),30,2,1);
|
||||
$this->assertNotNull($id);
|
||||
$this->assertNotFalse($id);
|
||||
$this->id = $id;
|
||||
$this->assertTrue($this->repo->delete($id));
|
||||
}
|
||||
|
||||
public function testGetById(){
|
||||
$result = $this->repo->getById($this->id);
|
||||
$this->assertEquals($this->id,$result['id']);
|
||||
$result = $this->repo->getById(1);
|
||||
$this->assertEquals(1,$result['Id']);
|
||||
}
|
||||
|
||||
public function testDelete(){
|
||||
$this->assertTrue($this->repo->delete($this->id));
|
||||
public function testUpdateTime(){
|
||||
$date = date('Y-m-d H:i:s',time());
|
||||
$this->assertTrue($this->repo->updateDateTime(1,$date));
|
||||
$result = $this->repo->getById(1);
|
||||
$this->assertEquals($date,$result['DateRDV']);
|
||||
}
|
||||
|
||||
public function testGetByDate(){
|
||||
$date = date('Y-m-d H:i:s',time());
|
||||
$this->assertTrue($this->repo->updateDateTime(1,$date));
|
||||
$result = $this->repo->getByDate($date = date('Y-m-d',strtotime($date)));
|
||||
$this->assertTrue(isset($result[0]));
|
||||
$this->assertEquals($result[0]['Id'],1);
|
||||
}
|
||||
|
||||
public function testGetByPAtientAndDate(){
|
||||
$date = '2015-12-20 13:33:00';
|
||||
$this->assertTrue($this->repo->updateDateTime(85,$date));
|
||||
$result = $this->repo->getByPatientAndDate(14,date('Y-m-d',strtotime($date)));
|
||||
$this->assertTrue(isset($result[0]));
|
||||
$this->assertEquals($result[0]['Id'],85);
|
||||
}
|
||||
|
||||
public function testGetAll(){
|
||||
$this->assertEquals(count($this->repo->getAll(-1)),99);
|
||||
$this->assertEquals(count($this->repo->getAll(0)),100);
|
||||
$this->assertEquals(count($this->repo->getAll(1)),2);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: seekdasky
|
||||
* Date: 09/12/15
|
||||
* Time: 12:44
|
||||
*/
|
||||
class StaticRepoTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testGetConnexion(){
|
||||
$this->assertTrue(StaticRepo::getConnexion() instanceof PDO);
|
||||
}
|
||||
|
||||
public function testTestConnexion(){
|
||||
$this->assertTrue(StaticRepo::testConnexion());
|
||||
}
|
||||
|
||||
public function testDelNumericOneDimension(){
|
||||
$array = [0=>'kjbk','kughk'=>'kjbk',1=>'aze','azert'=>'aza'];
|
||||
$this->assertEquals(StaticRepo::delNumeric($array,true),['kughk'=>'kjbk','azert'=>'aza']);
|
||||
}
|
||||
|
||||
public function testDelNumericTwoDimension(){
|
||||
$array = [0=>[0=>'kjbk','kughk'=>'kjbk',1=>'aze','azert'=>'aze'],1=>[0=>'kjbk','kughk'=>'kjbk',1=>'aze','azert'=>'aza']];
|
||||
$this->assertEquals(StaticRepo::delNumeric($array),[0=>['kughk'=>'kjbk','azert'=>'aze'],1=>['kughk'=>'kjbk','azert'=>'aza']]);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: seekdasky
|
||||
* Date: 09/12/15
|
||||
* Time: 12:43
|
||||
*/
|
||||
class StatsRepoTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testAgePatient(){
|
||||
$array=['H'=>['25-'=>31,'25-50'=>2,'50+'=>16],'F'=>['25-'=>36,'25-50'=>6,'50+'=>9]];
|
||||
|
||||
$this->assertEquals(StatsRepo::getAgePatient(),$array);
|
||||
}
|
||||
|
||||
}
|
|
@ -10,15 +10,21 @@ require_once('autoloader.php');
|
|||
|
||||
$jsonP = json_decode(file_get_contents('Docs/PatientExemple.json'),true);
|
||||
$jsonM = json_decode(file_get_contents('Docs/MedecinExemple.json'),true);
|
||||
$jsonR = json_decode(file_get_contents('Docs/RDVExemple.json'),true);
|
||||
|
||||
var_dump(StaticRepo::testConnexion());
|
||||
$repo = new PatientRepo();
|
||||
$repoM = new MedecinRepo();
|
||||
|
||||
|
||||
foreach($jsonM as $patient) {
|
||||
$repoM->add($patient['Civilite'], $patient['Prenom'], $patient['Nom']);
|
||||
}
|
||||
|
||||
foreach($jsonP as $patient){
|
||||
$repo->add($patient['Civilite'],$patient['Prenom'],$patient['Nom'],$patient['Adresse'],NULL,$patient['Ville'],$patient['CodePostal'],$patient['DateNaissance'],$patient['LieuNaissance'],$patient['NumSecuriteSociale'],$patient['MedecinTraitant']);
|
||||
}
|
||||
|
||||
foreach($jsonR as $rdv){
|
||||
RDVRepo::add($rdv['DateRDV'],$rdv['Duree'],$rdv['Patient_Id'],$rdv['Medecin_Id']);
|
||||
}
|
Loading…
Reference in New Issue