File
- drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php, line 212
Class
- AbstractProfilerStorageTest
Namespace
Symfony\Component\HttpKernel\Tests\Profiler
Code
public function testDuplicates() {
for ($i = 1; $i <= 5; $i++) {
$profile = new Profile('foo' . $i);
$profile
->setIp('127.0.0.1');
$profile
->setUrl('http://example.net/');
$profile
->setMethod('GET');
$this
->getStorage()
->write($profile);
$this
->getStorage()
->write($profile);
$this
->getStorage()
->write($profile);
}
$this
->assertCount(3, $this
->getStorage()
->find('127.0.0.1', 'http://example.net/', 3, 'GET'), '->find() method returns incorrect number of entries');
}