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