I ran into an issue with a monitoring tool that checks all the routes. It is failing on the session check because it's calling session_start(), even though that won't work from the CLI.
Pierstoval/SmokeTesting#14
I think better would be to inject the RequestStack and get the session from there, and ignore the test if it fails or isn't available.
I realize that test is specifically about testing the session, and this is an edge case (calling the controller from a service that doesn't have a browser context).