public function AbstractProfilerStorageTest::testRetrieveByEmptyUrlAndIp

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php, line 181

Class

AbstractProfilerStorageTest

Namespace

Symfony\Component\HttpKernel\Tests\Profiler

Code

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