Skip to content

Commit 89d8acf

Browse files
author
Christopher Cardea
committed
Corrected function names in profiling example.
1 parent 3cad1b7 commit 89d8acf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/testing/profiling.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ check that the profiler is indeed available (it is enabled by default in the
2828
// Check that the profiler is enabled
2929
if ($profile = $client->getProfile()) {
3030
// check the number of requests
31-
$this->assertTrue($profile->get('db')->getQueryCount() < 10);
31+
$this->assertTrue($profile->getCollector('db')->getQueryCount() < 10);
3232

3333
// check the time spent in the framework
34-
$this->assertTrue( $profile->get('timer')->getTime() < 0.5);
34+
$this->assertTrue( $profile->getCollector('timer')->getTime() < 0.5);
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)