/** * @test */ public function allSessionDataCanBeFlushedByCallingDestroy() { $session = new Session\TransientSession(); $session->start(); $session->putData('theKey', 'some data'); $session->destroy(); $session->start(); $this->assertNull($session->getData('theKey')); }