Symfony 2 - Adding session data to request object during unit testing
===

I'm trying to set up some testing for my REST API and I need to set a session variable inside the request object. The usual methods do not seem to work. 

    $session = $request->getSession(); 		 		
    $session->set('my_session_variable', 'myvar');