repo = new MedecinRepo(); } public function testConstruct(){ $this->assertTrue(new MedecinRepo() instanceof MedecinRepo); } public function testAddAndDelete(){ $id = $this->repo->add('M','Lucas','Mascaro'); $this->assertNotNull($id); $this->assertTrue($this->repo->delete($id)); } public function testSearch(){ $this->assertEquals($this->repo->search('HUFF','Heather')[0]['Nom'],'HUFF'); } public function testGetPatient(){ $this->assertEquals($this->repo->getPatients(9)[0]['Nom'],'PAUL'); } public function testGetById(){ $this->assertEquals($this->repo->getById(1)['Nom'],'HUFF'); } public function testGetAll(){ $this->assertEquals(count($this->repo->getAll()),100); } }