src/Mocks/EntityManagerMock.php
public static function create($conn, Configuration $config = null, EventManager $eventManager = null)
    {
        if (null === $config) {
            $config = new Configuration();
            $config->setProxyDir(__DIR__ . '/../Proxies');
            $config->setProxyNamespace('Doctrine\Tests\Proxies');
            $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver([], true));
        }
        if (null === $eventManager) {
            $eventManager = new EventManager();
        }

        return new EntityManagerMock($conn, $config, $eventManager);
    }
public static function create($conn, Configuration $config = null, EventManager $eventManager = null)
    {
        if (null === $config) {
            $config = new Configuration();
            $config->setProxyDir(__DIR__ . '/../Proxies');
            $config->setProxyNamespace('Doctrine\Tests\Proxies');
            $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver([], true));
        }
        if (null === $eventManager) {
            $eventManager = new EventManager();
        }

        return new EntityManagerMock($conn, $config, $eventManager);
    }
public static function create ( $ conn , Configuration $ config = null , EventManager $ eventManager = null ) { if ( null === $ config ) { $ config = new Configuration ( ) ; $ config -> setProxyDir ( __DIR__ . '/../Proxies' ) ; $ config -> setProxyNamespace ( 'Doctrine\Tests\Proxies' ) ; $ config -> setMetadataDriverImpl ( $ config -> newDefaultAnnotationDriver ( [ ] , true ) ) ; } if ( null === $ eventManager ) { $ eventManager = new EventManager ( ) ; } return new EntityManagerMock ( $ conn , $ config , $ eventManager ) ; }
Mock factory method to create an EntityManager.

{@inheritdoc}
Mock factory method to create an EntityManager .