public function testAanmelden()
 {
     $this->authenticatie->expects($this->once())->method('setStatus');
     $this->authenticatie->expects($this->exactly(2))->method('getAangemeldStatus')->will($this->returnValue(new KVDutil_Auth_AangemeldStatus($this->authenticatie)));
     $this->assertTrue($this->object->aanmelden('goessebr', 'encryrpted_pas'));
     $this->assertFalse($this->object->aanmelden('doesntexist', 'encryrpted_pas'));
     $this->assertFalse($this->object->aanmelden('goessebr', 'foutpaswoord'));
 }
 public function testAfmelden()
 {
     $this->authenticatie->expects($this->once())->method('getAfgemeldStatus')->will($this->returnValue(new KVDutil_Auth_AfgemeldStatus($this->authenticatie, $this->getMock('KVDutil_Auth_IProvider'))));
     $this->assertTrue($this->object->afmelden());
 }