You are here

public function AbstractProfilerStorageTest::testStore in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

AbstractProfilerStorageTest

Namespace

Symfony\Component\HttpKernel\Tests\Profiler

Code

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');
}