Example #1
0
 function it_destroys_a_session(Session $sesshin)
 {
     $sesshin->unsetValue('loginToken', 'guardian')->shouldBeCalled();
     $this->destroy()->shouldReturn(true);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function destroy()
 {
     $this->sesshin->unsetValue('loginToken', 'guardian');
     return true;
 }
Example #3
0
 /**
  * @covers Sesshin\Session::getEmitter
  */
 public function testUsesDefaultEmitterIfNotSet()
 {
     $session = new Session($this->getStoreMock());
     $this->assertEquals('League\\Event\\Emitter', get_class($session->getEmitter()));
 }