From 370d61477c951322681327fcfff7f2a4189adf03 Mon Sep 17 00:00:00 2001 From: Inal DJAFAR Date: Tue, 11 Mar 2014 23:52:48 +0100 Subject: [PATCH] [Cookbook][Test]fix sample code --- cookbook/testing/profiling.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/testing/profiling.rst b/cookbook/testing/profiling.rst index 2ee70f00eae..c8f6c6cacf4 100644 --- a/cookbook/testing/profiling.rst +++ b/cookbook/testing/profiling.rst @@ -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()