projet-php/test/StatsRepoTest.php

23 lines
561 B
PHP
Raw Permalink Normal View History

<?php
/**
* Created by PhpStorm.
* User: seekdasky
* Date: 09/12/15
* Time: 12:43
*/
class StatsRepoTest extends PHPUnit_Framework_TestCase
{
public function testAgePatient(){
2016-01-03 17:02:05 +00:00
$array=['H'=>['25-'=>31,'25-50'=>2,'50+'=>16],'F'=>['25-'=>36,'25-50'=>6,'50+'=>9],'NbrH'=>49,'NbrF'=>51];
$this->assertEquals(StatsRepo::getAgePatient(),$array);
}
public function testRDVStat(){
$this->assertEquals(StatsRepo::getRDVStat(2)['NombreRDV'],2);
2016-01-03 17:02:05 +00:00
$this->assertEquals(StatsRepo::getRDVStat(2)['DureeTotale'],120);
}
}