completion des tests unitaires
This commit is contained in:
parent
093ae83dfb
commit
82cd76a11c
|
@ -201,13 +201,13 @@
|
|||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</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="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="comment"> */</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="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="22 tests cover line 15" 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">PatientRepoTest::testUpdate</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="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</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><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</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">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="23 tests cover line 15" 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">PatientRepoTest::testUpdate</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="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li><li class="covered-by-large-tests">RDVRepoTest::testGetForMonth</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><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</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">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 16" 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="16"></a><a href="#16">16</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="17"></a><a href="#17">17</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="22 tests cover line 18" 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">PatientRepoTest::testUpdate</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="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</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><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</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">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="23 tests cover line 18" 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">PatientRepoTest::testUpdate</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="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li><li class="covered-by-large-tests">RDVRepoTest::testGetForMonth</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><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</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">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 19" 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="19"></a><a href="#19">19</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="20"></a><a href="#20">20</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="22 tests cover line 21" 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">PatientRepoTest::testUpdate</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="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</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><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</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="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="covered-by-large-tests popin" data-title="23 tests cover line 21" 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">PatientRepoTest::testUpdate</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="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByMonth</li><li class="covered-by-large-tests">RDVRepoTest::testGetForMonth</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><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</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="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="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="comment">/**</span></td></tr>
|
||||
|
@ -372,7 +372,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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:01:45 UTC 2016.</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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:26:02 UTC 2016.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="StaticRepo.php.html#3">StaticRepo</a></td><td class="text-right">83%</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">88%</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -77,7 +76,6 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="StaticRepo.php.html#3">StaticRepo</a></td><td class="text-right">66</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">25</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -116,7 +114,6 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="repos/MedecinRepo.php.html#90"><abbr title="MedecinRepo::update">update</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#22"><abbr title="RDVRepo::getForMonth">getForMonth</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#102"><abbr title="StaticRepo::checkParam">checkParam</abbr></a></td><td class="text-right">80%</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#41"><abbr title="StaticRepo::delNumeric">delNumeric</abbr></a></td><td class="text-right">85%</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#94"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">86%</td></tr>
|
||||
|
@ -150,7 +147,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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:01:45 UTC 2016.</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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:26:02 UTC 2016.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
@ -171,7 +168,7 @@ $(document).ready(function() {
|
|||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#classCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,2,3,0], "Class Coverage"))
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,4,0], "Class Coverage"))
|
||||
.transition().duration(500).call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
@ -189,7 +186,7 @@ $(document).ready(function() {
|
|||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#methodCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([2,0,0,0,0,0,0,0,0,4,4,19], "Method Coverage"))
|
||||
.datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,0,4,3,21], "Method Coverage"))
|
||||
.transition().duration(500).call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
@ -239,7 +236,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Cyclomatic Complexity');
|
||||
|
||||
d3.select('#classComplexity svg')
|
||||
.datum(getComplexityData([[83.928571428571,54,"<a href=\"StaticRepo.php.html#3\">StaticRepo<\/a>"],[91.176470588235,20,"<a href=\"repos\/MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[97.560975609756,47,"<a href=\"repos\/PatientRepo.php.html#9\">PatientRepo<\/a>"],[88.709677419355,25,"<a href=\"repos\/RDVRepo.php.html#9\">RDVRepo<\/a>"],[93.548387096774,9,"<a href=\"repos\/StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.datum(getComplexityData([[83.928571428571,54,"<a href=\"StaticRepo.php.html#3\">StaticRepo<\/a>"],[91.176470588235,20,"<a href=\"repos\/MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[97.560975609756,47,"<a href=\"repos\/PatientRepo.php.html#9\">PatientRepo<\/a>"],[96.774193548387,25,"<a href=\"repos\/RDVRepo.php.html#9\">RDVRepo<\/a>"],[93.548387096774,9,"<a href=\"repos\/StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
@ -263,7 +260,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Method Complexity');
|
||||
|
||||
d3.select('#methodComplexity svg')
|
||||
.datum(getComplexityData([[100,3,"<a href=\"StaticRepo.php.html#14\">StaticRepo::getConnexion<\/a>"],[100,1,"<a href=\"StaticRepo.php.html#27\">StaticRepo::testConnexion<\/a>"],[85.714285714286,10,"<a href=\"StaticRepo.php.html#41\">StaticRepo::delNumeric<\/a>"],[80.555555555556,40,"<a href=\"StaticRepo.php.html#102\">StaticRepo::checkParam<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[88.888888888889,5,"<a href=\"repos\/MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#41\">MedecinRepo::delete<\/a>"],[100,7,"<a href=\"repos\/MedecinRepo.php.html#51\">MedecinRepo::search<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#69\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#81\">MedecinRepo::getAll<\/a>"],[0,1,"<a href=\"repos\/MedecinRepo.php.html#90\">MedecinRepo::update<\/a>"],[100,2,"<a href=\"repos\/PatientRepo.php.html#11\">PatientRepo::getById<\/a>"],[96.774193548387,16,"<a href=\"repos\/PatientRepo.php.html#20\">PatientRepo::add<\/a>"],[96.774193548387,16,"<a href=\"repos\/PatientRepo.php.html#74\">PatientRepo::update<\/a>"],[100,2,"<a href=\"repos\/PatientRepo.php.html#113\">PatientRepo::delete<\/a>"],[100,3,"<a href=\"repos\/PatientRepo.php.html#124\">PatientRepo::updateMedecinTraitant<\/a>"],[100,7,"<a href=\"repos\/PatientRepo.php.html#134\">PatientRepo::search<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#153\">PatientRepo::getAll<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[0,1,"<a href=\"repos\/RDVRepo.php.html#22\">RDVRepo::getForMonth<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#34\">RDVRepo::getByDate<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#44\">RDVRepo::delete<\/a>"],[91.666666666667,6,"<a href=\"repos\/RDVRepo.php.html#52\">RDVRepo::add<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#71\">RDVRepo::updateDateTime<\/a>"],[100,3,"<a href=\"repos\/RDVRepo.php.html#83\">RDVRepo::getByPatientAndDate<\/a>"],[86.666666666667,5,"<a href=\"repos\/RDVRepo.php.html#94\">RDVRepo::getAll<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#116\">RDVRepo::getByMonth<\/a>"],[92.592592592593,8,"<a href=\"repos\/StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"repos\/StatsRepo.php.html#53\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
|
||||
.datum(getComplexityData([[100,3,"<a href=\"StaticRepo.php.html#14\">StaticRepo::getConnexion<\/a>"],[100,1,"<a href=\"StaticRepo.php.html#27\">StaticRepo::testConnexion<\/a>"],[85.714285714286,10,"<a href=\"StaticRepo.php.html#41\">StaticRepo::delNumeric<\/a>"],[80.555555555556,40,"<a href=\"StaticRepo.php.html#102\">StaticRepo::checkParam<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[88.888888888889,5,"<a href=\"repos\/MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#41\">MedecinRepo::delete<\/a>"],[100,7,"<a href=\"repos\/MedecinRepo.php.html#51\">MedecinRepo::search<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#69\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#81\">MedecinRepo::getAll<\/a>"],[0,1,"<a href=\"repos\/MedecinRepo.php.html#90\">MedecinRepo::update<\/a>"],[100,2,"<a href=\"repos\/PatientRepo.php.html#11\">PatientRepo::getById<\/a>"],[96.774193548387,16,"<a href=\"repos\/PatientRepo.php.html#20\">PatientRepo::add<\/a>"],[96.774193548387,16,"<a href=\"repos\/PatientRepo.php.html#74\">PatientRepo::update<\/a>"],[100,2,"<a href=\"repos\/PatientRepo.php.html#113\">PatientRepo::delete<\/a>"],[100,3,"<a href=\"repos\/PatientRepo.php.html#124\">PatientRepo::updateMedecinTraitant<\/a>"],[100,7,"<a href=\"repos\/PatientRepo.php.html#134\">PatientRepo::search<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#153\">PatientRepo::getAll<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#22\">RDVRepo::getForMonth<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#34\">RDVRepo::getByDate<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#44\">RDVRepo::delete<\/a>"],[100,6,"<a href=\"repos\/RDVRepo.php.html#52\">RDVRepo::add<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#71\">RDVRepo::updateDateTime<\/a>"],[100,3,"<a href=\"repos\/RDVRepo.php.html#83\">RDVRepo::getByPatientAndDate<\/a>"],[86.666666666667,5,"<a href=\"repos\/RDVRepo.php.html#94\">RDVRepo::getAll<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#116\">RDVRepo::getByMonth<\/a>"],[92.592592592593,8,"<a href=\"repos\/StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"repos\/StatsRepo.php.html#53\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
|
|
@ -43,21 +43,21 @@
|
|||
<tr>
|
||||
<td class="success">Total</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="91.32" aria-valuemin="0" aria-valuemax="100" style="width: 91.32%">
|
||||
<span class="sr-only">91.32% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="93.21" aria-valuemin="0" aria-valuemax="100" style="width: 93.21%">
|
||||
<span class="sr-only">93.21% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">91.32%</div></td>
|
||||
<td class="success small"><div align="right">242 / 265</div></td>
|
||||
<td class="success small"><div align="right">93.21%</div></td>
|
||||
<td class="success small"><div align="right">247 / 265</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="65.52" aria-valuemin="0" aria-valuemax="100" style="width: 65.52%">
|
||||
<span class="sr-only">65.52% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="72.41" aria-valuemin="0" aria-valuemax="100" style="width: 72.41%">
|
||||
<span class="sr-only">72.41% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">65.52%</div></td>
|
||||
<td class="warning small"><div align="right">19 / 29</div></td>
|
||||
<td class="warning small"><div align="right">72.41%</div></td>
|
||||
<td class="warning small"><div align="right">21 / 29</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>
|
||||
|
@ -71,21 +71,21 @@
|
|||
<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.30" aria-valuemin="0" aria-valuemax="100" style="width: 93.30%">
|
||||
<span class="sr-only">93.30% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.69" aria-valuemin="0" aria-valuemax="100" style="width: 95.69%">
|
||||
<span class="sr-only">95.69% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">93.30%</div></td>
|
||||
<td class="success small"><div align="right">195 / 209</div></td>
|
||||
<td class="success small"><div align="right">95.69%</div></td>
|
||||
<td class="success small"><div align="right">200 / 209</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 class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="76.00" aria-valuemin="0" aria-valuemax="100" style="width: 76.00%">
|
||||
<span class="sr-only">76.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="warning small"><div align="right">76.00%</div></td>
|
||||
<td class="warning small"><div align="right">19 / 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>
|
||||
|
@ -136,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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:01:45 UTC 2016.</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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:26:02 UTC 2016.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -359,7 +359,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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:01:45 UTC 2016.</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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:26:02 UTC 2016.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -424,7 +424,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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:01:45 UTC 2016.</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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:26:02 UTC 2016.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -52,22 +52,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="66.67" aria-valuemin="0" aria-valuemax="100" style="width: 66.67%">
|
||||
<span class="sr-only">66.67% covered (warning)</span>
|
||||
<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">66.67%</div></td>
|
||||
<td class="warning small"><div align="right">6 / 9</div></td>
|
||||
<td class="warning small"><div align="right">88.89%</div></td>
|
||||
<td class="warning small"><div align="right">8 / 9</div></td>
|
||||
<td class="warning 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="88.71" aria-valuemin="0" aria-valuemax="100" style="width: 88.71%">
|
||||
<span class="sr-only">88.71% covered (warning)</span>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.77" aria-valuemin="0" aria-valuemax="100" style="width: 96.77%">
|
||||
<span class="sr-only">96.77% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">88.71%</div></td>
|
||||
<td class="warning small"><div align="right">55 / 62</div></td>
|
||||
<td class="success small"><div align="right">96.77%</div></td>
|
||||
<td class="success small"><div align="right">60 / 62</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -81,22 +81,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="66.67" aria-valuemin="0" aria-valuemax="100" style="width: 66.67%">
|
||||
<span class="sr-only">66.67% covered (warning)</span>
|
||||
<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">66.67%</div></td>
|
||||
<td class="warning small"><div align="right">6 / 9</div></td>
|
||||
<td class="warning small">25.90</td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="88.71" aria-valuemin="0" aria-valuemax="100" style="width: 88.71%">
|
||||
<span class="sr-only">88.71% covered (warning)</span>
|
||||
<td class="warning small"><div align="right">88.89%</div></td>
|
||||
<td class="warning small"><div align="right">8 / 9</div></td>
|
||||
<td class="warning small">25</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.77" aria-valuemin="0" aria-valuemax="100" style="width: 96.77%">
|
||||
<span class="sr-only">96.77% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">88.71%</div></td>
|
||||
<td class="warning small"><div align="right">55 / 62</div></td>
|
||||
<td class="success small"><div align="right">96.77%</div></td>
|
||||
<td class="success small"><div align="right">60 / 62</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -121,24 +121,24 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#22"><abbr title="getForMonth($month, $year)">getForMonth</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="#22"><abbr title="getForMonth($month, $year)">getForMonth</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>
|
||||
|
@ -184,24 +184,24 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#52"><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">6.02</td>
|
||||
<td class="success" colspan="4"> <a href="#52"><abbr title="add($date,$duree,$idPatient,$idMedecin)">add</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="91.67" aria-valuemin="0" aria-valuemax="100" style="width: 91.67%">
|
||||
<span class="sr-only">91.67% covered (success)</span>
|
||||
<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">91.67%</div></td>
|
||||
<td class="success small"><div align="right">11 / 12</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">6</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">12 / 12</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -315,15 +315,15 @@
|
|||
<tr class="warning"><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">}</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><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">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">getForMonth</span><span class="keyword">(</span><span class="default">$month</span><span class="keyword">,</span><span class="default"> </span><span class="default">$year</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="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 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>
|
||||
<tr class="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><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="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 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>
|
||||
<tr><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> FROM RDV, Patient, Medecin</span></td></tr>
|
||||
<tr><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"><span class="default"> WHERE Patient.Id = RDV.Patient_Id</span></td></tr>
|
||||
<tr><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> AND Medecin.Id = RDV.Medecin_Id</span></td></tr>
|
||||
<tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> AND MONTH(DateRDV) = :month</span></td></tr>
|
||||
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> AND YEAR(DateRDV) = :year</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"> ORDER BY DateRDV ASC"</span><span class="keyword">)</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">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">array</span><span class="keyword">(</span><span class="default"> </span><span class="default">':month'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$month</span><span class="keyword">,</span><span class="default"> </span><span class="default">':year'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$year</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">)</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">return</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="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::testGetForMonth</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"> 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 30" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetForMonth</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">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">array</span><span class="keyword">(</span><span class="default"> </span><span class="default">':month'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$month</span><span class="keyword">,</span><span class="default"> </span><span class="default">':year'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$year</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 31" data-content="<ul><li class="covered-by-large-tests">RDVRepoTest::testGetForMonth</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="keyword">return</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="keyword">;</span></td></tr>
|
||||
<tr class="warning"><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">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><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>
|
||||
|
@ -360,7 +360,7 @@
|
|||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 65" 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="65"></a><a href="#65">65</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$id</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">lastInsertId</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 66" 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="66"></a><a href="#66">66</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">settype</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">,</span><span class="default">'integer'</span><span class="keyword">)</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::testAdd</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">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">$id</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><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">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="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><div align="right"><a name="68"></a><a href="#68">68</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="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="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"> </span><span class="default">$dateRdv</span><span class="keyword">,</span><span class="default"> </span><span class="default">$duree</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
|
@ -437,7 +437,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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:01:45 UTC 2016.</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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:26:02 UTC 2016.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
<span class="warning"><strong>Dead Code</strong></span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:01:45 UTC 2016.</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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:26:02 UTC 2016.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">88%</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -76,7 +75,6 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">25</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -114,7 +112,6 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="RDVRepo.php.html#22"><abbr title="RDVRepo::getForMonth">getForMonth</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="MedecinRepo.php.html#90"><abbr title="MedecinRepo::update">update</abbr></a></td><td class="text-right">0%</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#94"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">86%</td></tr>
|
||||
<tr><td><a href="MedecinRepo.php.html#22"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">88%</td></tr>
|
||||
|
@ -145,7 +142,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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:01:45 UTC 2016.</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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:26:02 UTC 2016.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
@ -166,7 +163,7 @@ $(document).ready(function() {
|
|||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#classCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,3,0], "Class Coverage"))
|
||||
.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);
|
||||
|
@ -184,7 +181,7 @@ $(document).ready(function() {
|
|||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#methodCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([2,0,0,0,0,0,0,0,0,2,4,17], "Method Coverage"))
|
||||
.datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,0,2,3,19], "Method Coverage"))
|
||||
.transition().duration(500).call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
@ -234,7 +231,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Cyclomatic Complexity');
|
||||
|
||||
d3.select('#classComplexity svg')
|
||||
.datum(getComplexityData([[91.176470588235,20,"<a href=\"MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[97.560975609756,47,"<a href=\"PatientRepo.php.html#9\">PatientRepo<\/a>"],[88.709677419355,25,"<a href=\"RDVRepo.php.html#9\">RDVRepo<\/a>"],[93.548387096774,9,"<a href=\"StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.datum(getComplexityData([[91.176470588235,20,"<a href=\"MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[97.560975609756,47,"<a href=\"PatientRepo.php.html#9\">PatientRepo<\/a>"],[96.774193548387,25,"<a href=\"RDVRepo.php.html#9\">RDVRepo<\/a>"],[93.548387096774,9,"<a href=\"StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
@ -258,7 +255,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Method Complexity');
|
||||
|
||||
d3.select('#methodComplexity svg')
|
||||
.datum(getComplexityData([[100,2,"<a href=\"MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[88.888888888889,5,"<a href=\"MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,2,"<a href=\"MedecinRepo.php.html#41\">MedecinRepo::delete<\/a>"],[100,7,"<a href=\"MedecinRepo.php.html#51\">MedecinRepo::search<\/a>"],[100,2,"<a href=\"MedecinRepo.php.html#69\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#81\">MedecinRepo::getAll<\/a>"],[0,1,"<a href=\"MedecinRepo.php.html#90\">MedecinRepo::update<\/a>"],[100,2,"<a href=\"PatientRepo.php.html#11\">PatientRepo::getById<\/a>"],[96.774193548387,16,"<a href=\"PatientRepo.php.html#20\">PatientRepo::add<\/a>"],[96.774193548387,16,"<a href=\"PatientRepo.php.html#74\">PatientRepo::update<\/a>"],[100,2,"<a href=\"PatientRepo.php.html#113\">PatientRepo::delete<\/a>"],[100,3,"<a href=\"PatientRepo.php.html#124\">PatientRepo::updateMedecinTraitant<\/a>"],[100,7,"<a href=\"PatientRepo.php.html#134\">PatientRepo::search<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#153\">PatientRepo::getAll<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[0,1,"<a href=\"RDVRepo.php.html#22\">RDVRepo::getForMonth<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#34\">RDVRepo::getByDate<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#44\">RDVRepo::delete<\/a>"],[91.666666666667,6,"<a href=\"RDVRepo.php.html#52\">RDVRepo::add<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#71\">RDVRepo::updateDateTime<\/a>"],[100,3,"<a href=\"RDVRepo.php.html#83\">RDVRepo::getByPatientAndDate<\/a>"],[86.666666666667,5,"<a href=\"RDVRepo.php.html#94\">RDVRepo::getAll<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#116\">RDVRepo::getByMonth<\/a>"],[92.592592592593,8,"<a href=\"StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"StatsRepo.php.html#53\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
|
||||
.datum(getComplexityData([[100,2,"<a href=\"MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[88.888888888889,5,"<a href=\"MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,2,"<a href=\"MedecinRepo.php.html#41\">MedecinRepo::delete<\/a>"],[100,7,"<a href=\"MedecinRepo.php.html#51\">MedecinRepo::search<\/a>"],[100,2,"<a href=\"MedecinRepo.php.html#69\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#81\">MedecinRepo::getAll<\/a>"],[0,1,"<a href=\"MedecinRepo.php.html#90\">MedecinRepo::update<\/a>"],[100,2,"<a href=\"PatientRepo.php.html#11\">PatientRepo::getById<\/a>"],[96.774193548387,16,"<a href=\"PatientRepo.php.html#20\">PatientRepo::add<\/a>"],[96.774193548387,16,"<a href=\"PatientRepo.php.html#74\">PatientRepo::update<\/a>"],[100,2,"<a href=\"PatientRepo.php.html#113\">PatientRepo::delete<\/a>"],[100,3,"<a href=\"PatientRepo.php.html#124\">PatientRepo::updateMedecinTraitant<\/a>"],[100,7,"<a href=\"PatientRepo.php.html#134\">PatientRepo::search<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#153\">PatientRepo::getAll<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#22\">RDVRepo::getForMonth<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#34\">RDVRepo::getByDate<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#44\">RDVRepo::delete<\/a>"],[100,6,"<a href=\"RDVRepo.php.html#52\">RDVRepo::add<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#71\">RDVRepo::updateDateTime<\/a>"],[100,3,"<a href=\"RDVRepo.php.html#83\">RDVRepo::getByPatientAndDate<\/a>"],[86.666666666667,5,"<a href=\"RDVRepo.php.html#94\">RDVRepo::getAll<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#116\">RDVRepo::getByMonth<\/a>"],[92.592592592593,8,"<a href=\"StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"StatsRepo.php.html#53\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
|
|
@ -44,21 +44,21 @@
|
|||
<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.30" aria-valuemin="0" aria-valuemax="100" style="width: 93.30%">
|
||||
<span class="sr-only">93.30% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.69" aria-valuemin="0" aria-valuemax="100" style="width: 95.69%">
|
||||
<span class="sr-only">95.69% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">93.30%</div></td>
|
||||
<td class="success small"><div align="right">195 / 209</div></td>
|
||||
<td class="success small"><div align="right">95.69%</div></td>
|
||||
<td class="success small"><div align="right">200 / 209</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 class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="76.00" aria-valuemin="0" aria-valuemax="100" style="width: 76.00%">
|
||||
<span class="sr-only">76.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="warning small"><div align="right">76.00%</div></td>
|
||||
<td class="warning small"><div align="right">19 / 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>
|
||||
|
@ -126,23 +126,23 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="warning"><span class="glyphicon glyphicon-file"></span> <a href="RDVRepo.php.html">RDVRepo.php</a></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="88.71" aria-valuemin="0" aria-valuemax="100" style="width: 88.71%">
|
||||
<span class="sr-only">88.71% covered (warning)</span>
|
||||
<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="96.77" aria-valuemin="0" aria-valuemax="100" style="width: 96.77%">
|
||||
<span class="sr-only">96.77% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">88.71%</div></td>
|
||||
<td class="warning small"><div align="right">55 / 62</div></td>
|
||||
<td class="success small"><div align="right">96.77%</div></td>
|
||||
<td class="success small"><div align="right">60 / 62</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="66.67" aria-valuemin="0" aria-valuemax="100" style="width: 66.67%">
|
||||
<span class="sr-only">66.67% covered (warning)</span>
|
||||
<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">66.67%</div></td>
|
||||
<td class="warning small"><div align="right">6 / 9</div></td>
|
||||
<td class="warning small"><div align="right">88.89%</div></td>
|
||||
<td class="warning small"><div align="right">8 / 9</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>
|
||||
|
@ -193,7 +193,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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:01:45 UTC 2016.</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.1</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Sun Jan 3 17:26:02 UTC 2016.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -24,6 +24,9 @@ class RDVRepoTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertNotNull($id);
|
||||
$this->assertNotFalse($id);
|
||||
$this->assertTrue($this->repo->delete($id));
|
||||
|
||||
$this->assertFalse($this->repo->add(date('Y-m-d H:i:s',time()),30,2,-1));
|
||||
|
||||
}
|
||||
|
||||
public function testGetById(){
|
||||
|
@ -65,4 +68,8 @@ class RDVRepoTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals(count($this->repo->getByMonth(strtotime($date))),13);
|
||||
}
|
||||
|
||||
public function testGetForMonth(){
|
||||
$this->assertEquals(count($this->repo->getForMonth('12','2015')),2);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue