projet-php/test/StatsRepoTest.php

22 lines
465 B
PHP

<?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);
}
public function testRDVStat(){
$this->assertEquals(StatsRepo::getRDVStat(2)['NombreRDV'],2);
}
}