2015-12-09 12:36:30 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: seekdasky
|
|
|
|
* Date: 09/12/15
|
|
|
|
* Time: 12:43
|
|
|
|
*/
|
|
|
|
class StatsRepoTest extends PHPUnit_Framework_TestCase
|
|
|
|
{
|
|
|
|
public function testAgePatient(){
|
|
|
|
$array=['H'=>['25-'=>31,'25-50'=>2,'50+'=>16],'F'=>['25-'=>36,'25-50'=>6,'50+'=>9]];
|
|
|
|
|
|
|
|
$this->assertEquals(StatsRepo::getAgePatient(),$array);
|
|
|
|
}
|
|
|
|
|
2015-12-10 08:04:19 +00:00
|
|
|
public function testRDVStat(){
|
|
|
|
$this->assertEquals(StatsRepo::getRDVStat(2)['NombreRDV'],2);
|
|
|
|
}
|
|
|
|
|
2015-12-09 12:36:30 +00:00
|
|
|
}
|