Commit be168e3b authored by Grégoire Pineau's avatar Grégoire Pineau

Added doc about session and test

parent e5144503
......@@ -102,6 +102,24 @@ executed before every test.
return $app;
}
.. tip::
If your application use sessions, you have to use ``ArraySessionStorage``
to store sessions::
// ...
use Symfony\Component\HttpFoundation\SessionStorage\ArraySessionStorage;
// ...
public function createApplication()
{
// ...
$this->app['session.storage'] = $this->app->share(function() {
return new ArraySessionStorage();
});
// ...
}
The WebTestCase provides a ``createClient`` method. A client acts as a browser,
and allows you to interact with your application. Here's how it works::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment