Browse Source

[DoctrineBundle] removed old code

Fabien Potencier 14 years ago
parent
commit
0b7a19e6fd
1 changed files with 0 additions and 23 deletions
  1. 0 23
      src/Symfony/Bundle/DoctrineBundle/Tests/TestCase.php

+ 0 - 23
src/Symfony/Bundle/DoctrineBundle/Tests/TestCase.php

@@ -11,8 +11,6 @@
 
 namespace Symfony\Bundle\DoctrineBundle\Tests;
 
-use Symfony\Bundle\DoctrineBundle\Annotations\IndexedReader;
-
 use Doctrine\Common\Annotations\AnnotationReader;
 use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
 use Doctrine\ORM\EntityManager;
@@ -31,27 +29,6 @@ class TestCase extends \PHPUnit_Framework_TestCase
         }
     }
 
-    /**
-     * @return EntityManager
-     */
-    protected function createTestEntityManager($paths = array())
-    {
-        $config = new \Doctrine\ORM\Configuration();
-        $config->setAutoGenerateProxyClasses(true);
-        $config->setProxyDir(\sys_get_temp_dir());
-        $config->setProxyNamespace('SymfonyTests\Doctrine');
-        $config->setMetadataDriverImpl(new AnnotationDriver(new IndexedReader(new AnnotationReader()), $paths));
-        $config->setQueryCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
-        $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
-
-        $params = array(
-            'driver' => 'pdo_sqlite',
-            'memory' => true,
-        );
-
-        return EntityManager::create($params, $config);
-    }
-
     public function createYamlBundleTestContainer()
     {
         $container = new ContainerBuilder(new ParameterBag(array(