Neos\Flow\Tests\Unit\Session\TransientSessionTest::allSessionDataCanBeFlushedByCallingDestroy PHP Method

allSessionDataCanBeFlushedByCallingDestroy() public method

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