<trclass="covered-by-large-tests popin"data-title="1 test covers line 23"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetForMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="23"></a><ahref="#23">23</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">getConnexion</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">prepare</span><spanclass="keyword">(</span><spanclass="default">"SELECT RDV.Id, RDV.DateRDV, RDV.Medecin_Id, RDV.Patient_Id, RDV.Duree, Medecin.Prenom as M_Prenom, Medecin.Nom as M_Nom, Patient.Prenom as P_Prenom, Patient.Nom as P_Nom</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 29"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetForMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="29"></a><ahref="#29">29</a></div></td><tdclass="codeLine"><spanclass="default"> ORDER BY DateRDV ASC"</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 30"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetForMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="30"></a><ahref="#30">30</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">execute</span><spanclass="keyword">(</span><spanclass="keyword">array</span><spanclass="keyword">(</span><spanclass="default"> </span><spanclass="default">':month'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$month</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">':year'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$year</span><spanclass="default"> </span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 31"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetForMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="31"></a><ahref="#31">31</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">fetchAll</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 46"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="46"></a><ahref="#46">46</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="keyword">(</span><spanclass="keyword">!</span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">checkParam</span><spanclass="keyword">(</span><spanclass="default">$idRDV</span><spanclass="keyword">,</span><spanclass="default">'Numeric'</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">{</span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">false</span><spanclass="keyword">;</span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 48"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="48"></a><ahref="#48">48</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">getConnexion</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">prepare</span><spanclass="keyword">(</span><spanclass="default">'DELETE FROM RDV WHERE RDV.id = :id'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 49"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="49"></a><ahref="#49">49</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">execute</span><spanclass="keyword">(</span><spanclass="keyword">[</span><spanclass="default">'id'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$idRDV</span><spanclass="keyword">]</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 54"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="54"></a><ahref="#54">54</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="keyword">(</span><spanclass="keyword">!</span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">checkParam</span><spanclass="keyword">(</span><spanclass="default">$date</span><spanclass="keyword">,</span><spanclass="default">'Date'</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">&&</span><spanclass="default"> </span><spanclass="keyword">!</span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">checkParam</span><spanclass="keyword">(</span><spanclass="default">$duree</span><spanclass="keyword">,</span><spanclass="default">'Integer'</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">&&</span><spanclass="default"> </span><spanclass="keyword">!</span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">checkParam</span><spanclass="keyword">(</span><spanclass="default">$idPatient</span><spanclass="keyword">,</span><spanclass="default">'Integer'</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">&&</span><spanclass="default"> </span><spanclass="keyword">!</span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">checkParam</span><spanclass="keyword">(</span><spanclass="default">$idMedecin</span><spanclass="keyword">,</span><spanclass="default">'Integer'</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">{</span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">false</span><spanclass="keyword">;</span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 56"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="56"></a><ahref="#56">56</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="keyword">(</span><spanclass="keyword">!</span><spanclass="keyword">static</span><spanclass="default">::</span><spanclass="default">isPossible</span><spanclass="keyword">(</span><spanclass="default">$date</span><spanclass="keyword">,</span><spanclass="default">$duree</span><spanclass="keyword">,</span><spanclass="default">$idMedecin</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">{</span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">false</span><spanclass="keyword">;</span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 58"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="58"></a><ahref="#58">58</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$date</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">date</span><spanclass="keyword">(</span><spanclass="default">'Y-m-d H:i:s'</span><spanclass="keyword">,</span><spanclass="default">strtotime</span><spanclass="keyword">(</span><spanclass="default">$date</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 59"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="59"></a><ahref="#59">59</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$duree</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">date</span><spanclass="keyword">(</span><spanclass="default">'H:i:s'</span><spanclass="keyword">,</span><spanclass="default">$duree</span><spanclass="keyword">*</span><spanclass="default">60</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 60"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="60"></a><ahref="#60">60</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">getConnexion</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">prepare</span><spanclass="keyword">(</span><spanclass="default">'INSERT INTO RDV VALUES (DEFAULT,:date,:duree,:patient,:medecin)'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 61"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="61"></a><ahref="#61">61</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$result</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">execute</span><spanclass="keyword">(</span><spanclass="keyword">[</span><spanclass="default">'date'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$date</span><spanclass="keyword">,</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 62"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="62"></a><ahref="#62">62</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'duree'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$duree</span><spanclass="keyword">,</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 63"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="63"></a><ahref="#63">63</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'patient'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$idPatient</span><spanclass="keyword">,</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 64"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="64"></a><ahref="#64">64</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'medecin'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$idMedecin</span><spanclass="keyword">]</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 67"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="67"></a><ahref="#67">67</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$id</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">getConnexion</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">lastInsertId</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 68"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="68"></a><ahref="#68">68</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">settype</span><spanclass="keyword">(</span><spanclass="default">$id</span><spanclass="keyword">,</span><spanclass="default">'integer'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 69"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="69"></a><ahref="#69">69</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="keyword">(</span><spanclass="default">$result</span><spanclass="keyword">)</span><spanclass="keyword">{</span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">$id</span><spanclass="keyword">;</span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 70"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="70"></a><ahref="#70">70</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">else</span><spanclass="keyword">{</span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">false</span><spanclass="keyword">;</span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 93"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="93"></a><ahref="#93">93</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="keyword">(</span><spanclass="keyword">!</span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">checkParam</span><spanclass="keyword">(</span><spanclass="default">$idPatient</span><spanclass="keyword">,</span><spanclass="default">'Integer'</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">&&</span><spanclass="default"> </span><spanclass="keyword">!</span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">checkParam</span><spanclass="keyword">(</span><spanclass="default">$date</span><spanclass="keyword">,</span><spanclass="default">'Date'</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">{</span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">false</span><spanclass="keyword">;</span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 95"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="95"></a><ahref="#95">95</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$date</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">date</span><spanclass="keyword">(</span><spanclass="default">'Y-m-d'</span><spanclass="keyword">,</span><spanclass="default">strtotime</span><spanclass="keyword">(</span><spanclass="default">$date</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 96"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="96"></a><ahref="#96">96</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">getConnexion</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">prepare</span><spanclass="keyword">(</span><spanclass="default">'SELECT * FROM RDV WHERE Patient_Id=:patient AND DATE(DateRDV)=:date'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 97"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="97"></a><ahref="#97">97</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">execute</span><spanclass="keyword">(</span><spanclass="keyword">[</span><spanclass="default">'patient'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$idPatient</span><spanclass="keyword">,</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 98"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="98"></a><ahref="#98">98</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'date'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$date</span><spanclass="keyword">]</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 99"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="99"></a><ahref="#99">99</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">delNumeric</span><spanclass="keyword">(</span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">fetchAll</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 104"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="104"></a><ahref="#104">104</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="keyword">(</span><spanclass="keyword">!</span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">checkParam</span><spanclass="keyword">(</span><spanclass="default">$date</span><spanclass="keyword">,</span><spanclass="default">'Integer'</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">{</span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">false</span><spanclass="keyword">;</span><spanclass="keyword">}</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 106"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="106"></a><ahref="#106">106</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$dateTime</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">date</span><spanclass="keyword">(</span><spanclass="default">'Y-m-d'</span><spanclass="keyword">,</span><spanclass="default">time</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 108"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="108"></a><ahref="#108">108</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">case</span><spanclass="default"> </span><spanclass="keyword">-</span><spanclass="default">1</span><spanclass="keyword">:</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 109"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="109"></a><ahref="#109">109</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">getConnexion</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">prepare</span><spanclass="keyword">(</span><spanclass="default">'SELECT * FROM RDV WHERE DATE(DateRDV) <= :date ORDER BY DateRDV ASC'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 110"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="110"></a><ahref="#110">110</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">execute</span><spanclass="keyword">(</span><spanclass="keyword">[</span><spanclass="default">'date'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$dateTime</span><spanclass="keyword">]</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 111"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="111"></a><ahref="#111">111</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">break</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 113"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="113"></a><ahref="#113">113</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">getConnexion</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">prepare</span><spanclass="keyword">(</span><spanclass="default">'SELECT * FROM RDV ORDER BY DateRDV ASC'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 114"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="114"></a><ahref="#114">114</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">execute</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 115"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="115"></a><ahref="#115">115</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">break</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 117"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="117"></a><ahref="#117">117</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">getConnexion</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">prepare</span><spanclass="keyword">(</span><spanclass="default">'SELECT * FROM RDV WHERE DATE(DateRDV) >= :date ORDER BY DateRDV ASC'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 118"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="118"></a><ahref="#118">118</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">execute</span><spanclass="keyword">(</span><spanclass="keyword">[</span><spanclass="default">'date'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">$dateTime</span><spanclass="keyword">]</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 119"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="119"></a><ahref="#119">119</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">break</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 121"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="121"></a><ahref="#121">121</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">delNumeric</span><spanclass="keyword">(</span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">fetchAll</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 126"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="126"></a><ahref="#126">126</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$strDate</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">date</span><spanclass="keyword">(</span><spanclass="default"> </span><spanclass="default">'Y-m-d'</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">$date</span><spanclass="default"> </span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 129"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="129"></a><ahref="#129">129</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="keyword">(</span><spanclass="default"> </span><spanclass="keyword">!</span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">checkParam</span><spanclass="keyword">(</span><spanclass="default">$strDate</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">'Date'</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="keyword">[</span><spanclass="keyword">]</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 131"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="131"></a><ahref="#131">131</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">getConnexion</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default">-></span><spanclass="default">prepare</span><spanclass="keyword">(</span><spanclass="default">'SELECT *, ((HOUR(Duree)*60)+MINUTE(Duree)) AS Minute FROM RDV WHERE MONTH(DateRDV) = :month AND YEAR(DateRDV) = :year ORDER BY DateRDV ASC'</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 132"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="132"></a><ahref="#132">132</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">execute</span><spanclass="keyword">(</span><spanclass="keyword">[</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 133"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="133"></a><ahref="#133">133</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'month'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">date</span><spanclass="keyword">(</span><spanclass="default"> </span><spanclass="default">'m'</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">$date</span><spanclass="default"> </span><spanclass="keyword">)</span><spanclass="keyword">,</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 134"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="134"></a><ahref="#134">134</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">'year'</span><spanclass="default"> </span><spanclass="default">=></span><spanclass="default"> </span><spanclass="default">date</span><spanclass="keyword">(</span><spanclass="default"> </span><spanclass="default">'Y'</span><spanclass="keyword">,</span><spanclass="default"> </span><spanclass="default">$date</span><spanclass="default"> </span><spanclass="keyword">)</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 137"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="137"></a><ahref="#137">137</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">StaticRepo</span><spanclass="default">::</span><spanclass="default">delNumeric</span><spanclass="keyword">(</span><spanclass="default"> </span><spanclass="default">$req</span><spanclass="default">-></span><spanclass="default">fetchAll</span><spanclass="keyword">(</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="4 tests cover line 146"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><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><divalign="right"><aname="146"></a><ahref="#146">146</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">foreach</span><spanclass="keyword">(</span><spanclass="default">$rdvs</span><spanclass="default"> </span><spanclass="keyword">as</span><spanclass="default"> </span><spanclass="default">$rdv</span><spanclass="keyword">)</span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="2 tests cover line 147"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="147"></a><ahref="#147">147</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="keyword">(</span><spanclass="default">$rdv</span><spanclass="keyword">[</span><spanclass="default">'Medecin_id'</span><spanclass="keyword">]</span><spanclass="default"> </span><spanclass="default">==</span><spanclass="default"> </span><spanclass="default">$medecin</span><spanclass="default"> </span><spanclass="keyword">and</span><spanclass="default"> </span><spanclass="default">$rdv</span><spanclass="keyword">[</span><spanclass="default">'Id'</span><spanclass="keyword">]</span><spanclass="default"> </span><spanclass="default">!=</span><spanclass="default"> </span><spanclass="default">$ignore</span><spanclass="keyword">)</span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 148"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="148"></a><ahref="#148">148</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$minDate</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">strtotime</span><spanclass="keyword">(</span><spanclass="default">$rdv</span><spanclass="keyword">[</span><spanclass="default">'DateRDV'</span><spanclass="keyword">]</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 149"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="149"></a><ahref="#149">149</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$maxDate</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">$minDate</span><spanclass="default"> </span><spanclass="keyword">+</span><spanclass="default"> </span><spanclass="default">$rdv</span><spanclass="keyword">[</span><spanclass="default">'Minute'</span><spanclass="keyword">]</span><spanclass="keyword">*</span><spanclass="default">60</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 151"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="151"></a><ahref="#151">151</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$actualMinDate</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">strtotime</span><spanclass="keyword">(</span><spanclass="default">$date</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 152"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="152"></a><ahref="#152">152</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="default">$actualMaxDate</span><spanclass="default"> </span><spanclass="keyword">=</span><spanclass="default"> </span><spanclass="default">$actualMinDate</span><spanclass="keyword">+</span><spanclass="keyword">(</span><spanclass="default">$duree</span><spanclass="keyword">*</span><spanclass="default">60</span><spanclass="keyword">)</span><spanclass="keyword">;</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="1 test covers line 154"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="154"></a><ahref="#154">154</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">if</span><spanclass="keyword">(</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="default">$minDate</span><spanclass="default"> </span><spanclass="default"><=</span><spanclass="default"> </span><spanclass="default">$actualMinDate</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">&&</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="default">$actualMinDate</span><spanclass="default"> </span><spanclass="default"><=</span><spanclass="default"> </span><spanclass="default">$maxDate</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">||</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="default">$minDate</span><spanclass="default"> </span><spanclass="default"><=</span><spanclass="default"> </span><spanclass="default">$actualMaxDate</span><spanclass="keyword">)</span><spanclass="default"> </span><spanclass="default">&&</span><spanclass="default"> </span><spanclass="keyword">(</span><spanclass="default">$actualMaxDate</span><spanclass="default"> </span><spanclass="default"><=</span><spanclass="default"> </span><spanclass="default">$maxDate</span><spanclass="keyword">)</span><spanclass="keyword">)</span><spanclass="keyword">{</span></td></tr>
<trclass="covered-by-large-tests popin"data-title="2 tests cover line 155"data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li></ul>"data-placement="bottom"data-html="true"><td><divalign="right"><aname="155"></a><ahref="#155">155</a></div></td><tdclass="codeLine"><spanclass="default"> </span><spanclass="keyword">return</span><spanclass="default"> </span><spanclass="default">false</span><spanclass="keyword">;</span></td></tr>
<small>Generated by <ahref="http://github.com/sebastianbergmann/php-code-coverage"target="_top">PHP_CodeCoverage 3.0.2</a> using <ahref="http://php.net/"target="_top">PHP 7.0.1</a> and <ahref="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 19:23:14 UTC 2016.</small>