Skip to content

Commit

Permalink
[Cookbook][Test]fix sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
inelgnu committed Mar 12, 2014
1 parent b4938a8 commit 370d614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/testing/profiling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ finish. It's easy to achieve if you embed the token in the error message::

$this->assertLessThan(
30,
$profile->get('db')->getQueryCount(),
$profile->getCollector('db')->getQueryCount(),
sprintf(
'Checks that query count is less than 30 (token %s)',
$profile->getToken()
Expand Down

0 comments on commit 370d614

Please sign in to comment.