Beispiel #1
0
 public function testGetSex()
 {
     $fakeId = new FakeId('820323-xx1x');
     $this->assertEquals(Id::SEX_MALE, $fakeId->getSex());
     $this->assertTrue($fakeId->isMale());
     $this->assertFalse($fakeId->isFemale());
     $this->assertFalse($fakeId->isSexUndefined());
     $fakeId = new FakeId('770314-xx2x');
     $this->assertEquals(Id::SEX_FEMALE, $fakeId->getSex());
     $this->assertFalse($fakeId->isMale());
     $this->assertTrue($fakeId->isFemale());
     $this->assertFalse($fakeId->isSexUndefined());
     $fakeId = new FakeId('770314-xxxx');
     $this->assertEquals(Id::SEX_UNDEFINED, $fakeId->getSex());
     $this->assertFalse($fakeId->isMale());
     $this->assertFalse($fakeId->isFemale());
     $this->assertTrue($fakeId->isSexUndefined());
 }