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