public function AbstractProfilerStorageTest::testStore 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::testStore()
File
- vendor/
symfony/ http-kernel/ Tests/ Profiler/ AbstractProfilerStorageTest.php, line 18
Class
Namespace
Symfony\Component\HttpKernel\Tests\ProfilerCode
public function testStore() {
for ($i = 0; $i < 10; ++$i) {
$profile = new Profile('token_' . $i);
$profile
->setIp('127.0.0.1');
$profile
->setUrl('http://foo.bar');
$profile
->setMethod('GET');
$this
->getStorage()
->write($profile);
}
$this
->assertCount(10, $this
->getStorage()
->find('127.0.0.1', 'http://foo.bar', 20, 'GET'), '->write() stores data in the storage');
}