public function AbstractProfilerStorageTest::testRetrieveByMethodAndLimit in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/Profiler/AbstractProfilerStorageTest.php \Symfony\Component\HttpKernel\Tests\Profiler\AbstractProfilerStorageTest::testRetrieveByMethodAndLimit()
File
- vendor/
symfony/ http-kernel/ Tests/ Profiler/ AbstractProfilerStorageTest.php, line 193
Class
Namespace
Symfony\Component\HttpKernel\Tests\ProfilerCode
public function testRetrieveByMethodAndLimit() {
foreach (array(
'POST',
'GET',
) as $method) {
for ($i = 0; $i < 5; ++$i) {
$profile = new Profile('token_' . $i . $method);
$profile
->setMethod($method);
$this
->getStorage()
->write($profile);
}
}
$this
->assertCount(5, $this
->getStorage()
->find('', '', 5, 'POST'));
$this
->getStorage()
->purge();
}