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