Example #1
0
 function testGetSoin()
 {
     $this->vcArr['soin'] = 1;
     $obj = new Member_Perso($this->vcArr);
     $this->assertTrue($obj->getSoin());
     $this->vcArr['soin'] = 0;
     $obj = new Member_Perso($this->vcArr);
     $this->assertFalse($obj->getSoin());
     //Valeurs 'impossibles'
     $tmp = array(null, "test", false, true, -1, 1000, '');
     foreach ($tmp as $value) {
         $this->vcArr['menotte'] = $value;
         $obj = new Member_Perso($this->vcArr);
         $this->assertFalse($obj->getSoin());
     }
 }