We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cad1b7 commit 89d8acfCopy full SHA for 89d8acf
cookbook/testing/profiling.rst
@@ -28,10 +28,10 @@ check that the profiler is indeed available (it is enabled by default in the
28
// Check that the profiler is enabled
29
if ($profile = $client->getProfile()) {
30
// check the number of requests
31
- $this->assertTrue($profile->get('db')->getQueryCount() < 10);
+ $this->assertTrue($profile->getCollector('db')->getQueryCount() < 10);
32
33
// check the time spent in the framework
34
- $this->assertTrue( $profile->get('timer')->getTime() < 0.5);
+ $this->assertTrue( $profile->getCollector('timer')->getTime() < 0.5);
35
}
36
37
0 commit comments