Skip to content

Commit c004739

Browse files
authored
Merge pull request #595 from TomHAnderson/hotfix/test-get-query-time
Allow for measurable time to pass when testing SQLLogger GetQueryTime
2 parents 5c134cf + c2260e3 commit c004739

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/DoctrineORMModuleTest/Collector/SQLLoggerCollectorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function testGetQueryTime()
6969
$this->assertEquals(0, $this->collector->getQueryTime());
7070

7171
$this->logger->startQuery('some sql');
72+
sleep(1);
7273
$this->logger->stopQuery();
7374
$time = microtime(true) - $start;
7475
$time1 = $this->collector->getQueryTime();

0 commit comments

Comments
 (0)