Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
be168e3b
Commit
be168e3b
authored
Sep 26, 2011
by
Grégoire Pineau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added doc about session and test
parent
e5144503
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
doc/testing.rst
doc/testing.rst
+18
-0
No files found.
doc/testing.rst
View file @
be168e3b
...
...
@@ -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::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment