symfony2 test problem

if you get this error:
SYMFONY2 WARNING: SESSION_START(): THE SESSION ID IS TOO LONG OR CONTAINS ILLEGAL CHARACTERS...

you should add this in your config_test.yml

framework:
    test: ~
    session:
      storage_id: session.storage.filesystem
    router:   { resource: "%kernel.root_dir%/config/routing_dev.yml" }
    profiler: { only_exceptions: false }
  

评论

热门博文