Skip to content

Translate to Portuguese #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Next Next commit
updated for PR3
  • Loading branch information
fabpot committed Jun 25, 2010
commit 2b4fc9531985d12e03c53d5c72430c1a5ed6857c
1 change: 1 addition & 0 deletions guides/en/Testing/Client.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ You can also get the objects related to the latest request:
$request = $client->getRequest();
$response = $client->getResponse();
$crawler = $client->getCrawler();
$profiler = $client->getProfiler();

If your requests are not insulated, you can also access the `Container` and
the `Kernel`:
Expand Down
3 changes: 1 addition & 2 deletions guides/en/Testing/Recipes.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ But before writing assertions, always check that the profiler is indeed
available (it is enabled by default in the `test` environment):

[php]
$profiler = $this->getProfiler($client->getResponse());
if ($profiler) {
if ($profiler = $client->getProfiler()) {
// check the number of requests
$this->assertTrue($profiler['db']->getQueryCount() < 10);

Expand Down