1
0
mirror of synced 2025-02-10 17:29:27 +03:00

Not a performance test

This commit is contained in:
Marco Pivetta 2016-05-26 20:17:30 +02:00 committed by Luís Cobucci
parent 9826d9c29a
commit c8a41598c9
No known key found for this signature in database
GPG Key ID: EC61C5F01750ED3C

View File

@ -8,7 +8,6 @@ use Doctrine\ORM\Events;
use Doctrine\Tests\OrmPerformanceTestCase; use Doctrine\Tests\OrmPerformanceTestCase;
/** /**
* @group performance
* @group DDC-2602 * @group DDC-2602
*/ */
class DDC2602Test extends OrmPerformanceTestCase class DDC2602Test extends OrmPerformanceTestCase
@ -51,14 +50,10 @@ class DDC2602Test extends OrmPerformanceTestCase
// Set maximum seconds this can run // Set maximum seconds this can run
$this->setMaxRunningTime(1); $this->setMaxRunningTime(1);
$s = microtime(true); $this
->_em
$query = $this->_em->createQuery('SELECT u, b FROM Doctrine\Tests\ORM\Performance\DDC2602User u JOIN u.biography b'); ->createQuery('SELECT u, b FROM Doctrine\Tests\ORM\Performance\DDC2602User u JOIN u.biography b')
$query->getResult(); ->getResult();
$e = microtime(true);
echo __FUNCTION__ . " - " . ($e - $s) . " seconds" . PHP_EOL;
} }
private function loadFixture() private function loadFixture()