Skip to content

Commit 370d614

Browse files
committed
[Cookbook][Test]fix sample code
1 parent b4938a8 commit 370d614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/testing/profiling.rst

Lines changed: 1 addition & 1 deletion
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)