Skip to content

Commit de0a5e1

Browse files
committed
bug #3665 [Cookbook][Test] fix sample code (inalgnu)
This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook][Test] fix sample code | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all Commits ------- 370d614 [Cookbook][Test]fix sample code
2 parents 97ef2f7 + 370d614 commit de0a5e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/testing/profiling.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ finish. It's easy to achieve if you embed the token in the error message::
5151

5252
$this->assertLessThan(
5353
30,
54-
$profile->get('db')->getQueryCount(),
54+
$profile->getCollector('db')->getQueryCount(),
5555
sprintf(
5656
'Checks that query count is less than 30 (token %s)',
5757
$profile->getToken()

0 commit comments

Comments
 (0)