File
- drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Debug/StopwatchTest.php, line 94
Class
- StopwatchTest
- StopwatchTest
Namespace
Symfony\Component\HttpKernel\Tests\Debug
Code
public function testReopenASection() {
$stopwatch = new Stopwatch();
$stopwatch
->openSection();
$stopwatch
->start('foo', 'cat');
$stopwatch
->stopSection('section');
$stopwatch
->openSection('section');
$stopwatch
->start('bar', 'cat');
$stopwatch
->stopSection('section');
$events = $stopwatch
->getSectionEvents('section');
$this
->assertCount(3, $events);
$this
->assertCount(2, $events['__section__']
->getPeriods());
}