From 131aac531ad8e4dc8eaf91b853057544bb7dfed7 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Thu, 26 May 2016 21:25:06 +0200 Subject: [PATCH] Removing unused `$entityManager` variable --- .../MixedQueryFetchJoinArrayHydrationPerformanceBench.php | 4 +--- .../Hydration/SimpleQueryArrayHydrationPerformanceBench.php | 4 +--- .../SimpleQueryFullObjectHydrationPerformanceBench.php | 4 +--- .../SimpleQueryPartialObjectHydrationPerformanceBench.php | 4 +--- .../Hydration/SimpleQueryScalarHydrationPerformanceBench.php | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/tests/Doctrine/Performance/Hydration/MixedQueryFetchJoinArrayHydrationPerformanceBench.php b/tests/Doctrine/Performance/Hydration/MixedQueryFetchJoinArrayHydrationPerformanceBench.php index 478f0b44d..bbda1f23d 100644 --- a/tests/Doctrine/Performance/Hydration/MixedQueryFetchJoinArrayHydrationPerformanceBench.php +++ b/tests/Doctrine/Performance/Hydration/MixedQueryFetchJoinArrayHydrationPerformanceBench.php @@ -32,8 +32,6 @@ final class MixedQueryFetchJoinArrayHydrationPerformanceBench public function init() { - $entityManager = EntityManagerFactory::getEntityManager([]); - $resultSet = [ [ 'u__id' => '1', @@ -73,7 +71,7 @@ final class MixedQueryFetchJoinArrayHydrationPerformanceBench } $this->stmt = new HydratorMockStatement($resultSet); - $this->hydrator = new ArrayHydrator($entityManager); + $this->hydrator = new ArrayHydrator(EntityManagerFactory::getEntityManager([])); $this->rsm = new ResultSetMapping; $this->rsm->addEntityResult(CmsUser::class, 'u'); diff --git a/tests/Doctrine/Performance/Hydration/SimpleQueryArrayHydrationPerformanceBench.php b/tests/Doctrine/Performance/Hydration/SimpleQueryArrayHydrationPerformanceBench.php index 10081245d..aa404554d 100644 --- a/tests/Doctrine/Performance/Hydration/SimpleQueryArrayHydrationPerformanceBench.php +++ b/tests/Doctrine/Performance/Hydration/SimpleQueryArrayHydrationPerformanceBench.php @@ -32,8 +32,6 @@ final class SimpleQueryArrayHydrationPerformanceBench public function init() { - $entityManager = EntityManagerFactory::getEntityManager([]); - $resultSet = [ [ 'u__id' => '1', @@ -65,7 +63,7 @@ final class SimpleQueryArrayHydrationPerformanceBench } $this->stmt = new HydratorMockStatement($resultSet); - $this->hydrator = new ArrayHydrator($entityManager); + $this->hydrator = new ArrayHydrator(EntityManagerFactory::getEntityManager([])); $this->rsm = new ResultSetMapping; $this->rsm->addEntityResult(CmsUser::class, 'u'); diff --git a/tests/Doctrine/Performance/Hydration/SimpleQueryFullObjectHydrationPerformanceBench.php b/tests/Doctrine/Performance/Hydration/SimpleQueryFullObjectHydrationPerformanceBench.php index fc61b9240..173001ff8 100644 --- a/tests/Doctrine/Performance/Hydration/SimpleQueryFullObjectHydrationPerformanceBench.php +++ b/tests/Doctrine/Performance/Hydration/SimpleQueryFullObjectHydrationPerformanceBench.php @@ -33,8 +33,6 @@ final class SimpleQueryFullObjectHydrationPerformanceBench public function init() { - $entityManager = EntityManagerFactory::getEntityManager([]); - $resultSet = [ [ 'u__id' => '1', @@ -56,7 +54,7 @@ final class SimpleQueryFullObjectHydrationPerformanceBench } $this->stmt = new HydratorMockStatement($resultSet); - $this->hydrator = new ObjectHydrator($entityManager); + $this->hydrator = new ObjectHydrator(EntityManagerFactory::getEntityManager([])); $this->rsm = new ResultSetMapping; $this->rsm->addEntityResult(CmsUser::class, 'u'); diff --git a/tests/Doctrine/Performance/Hydration/SimpleQueryPartialObjectHydrationPerformanceBench.php b/tests/Doctrine/Performance/Hydration/SimpleQueryPartialObjectHydrationPerformanceBench.php index cbbc24e1b..55d78973f 100644 --- a/tests/Doctrine/Performance/Hydration/SimpleQueryPartialObjectHydrationPerformanceBench.php +++ b/tests/Doctrine/Performance/Hydration/SimpleQueryPartialObjectHydrationPerformanceBench.php @@ -32,8 +32,6 @@ final class SimpleQueryPartialObjectHydrationPerformanceBench public function init() { - $entityManager = EntityManagerFactory::getEntityManager([]); - $resultSet = [ [ 'u__id' => '1', @@ -65,7 +63,7 @@ final class SimpleQueryPartialObjectHydrationPerformanceBench } $this->stmt = new HydratorMockStatement($resultSet); - $this->hydrator = new ObjectHydrator($entityManager); + $this->hydrator = new ObjectHydrator(EntityManagerFactory::getEntityManager([])); $this->rsm = new ResultSetMapping; $this->rsm->addEntityResult(CmsUser::class, 'u'); diff --git a/tests/Doctrine/Performance/Hydration/SimpleQueryScalarHydrationPerformanceBench.php b/tests/Doctrine/Performance/Hydration/SimpleQueryScalarHydrationPerformanceBench.php index 030b3667b..4af2c0791 100644 --- a/tests/Doctrine/Performance/Hydration/SimpleQueryScalarHydrationPerformanceBench.php +++ b/tests/Doctrine/Performance/Hydration/SimpleQueryScalarHydrationPerformanceBench.php @@ -32,8 +32,6 @@ final class SimpleQueryScalarHydrationPerformanceBench public function init() { - $entityManager = EntityManagerFactory::getEntityManager([]); - $resultSet = [ [ 'u__id' => '1', @@ -65,7 +63,7 @@ final class SimpleQueryScalarHydrationPerformanceBench } $this->stmt = new HydratorMockStatement($resultSet); - $this->hydrator = new ScalarHydrator($entityManager); + $this->hydrator = new ScalarHydrator(EntityManagerFactory::getEntityManager([])); $this->rsm = new ResultSetMapping; $this->rsm->addEntityResult(CmsUser::class, 'u');