Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->connectionMock = new ConnectionMock(array(), new DriverMock());
     $this->emMock = EntityManagerMock::create($this->connectionMock);
     $this->uowMock = new UnitOfWorkMock($this->emMock);
     $this->emMock->setUnitOfWork($this->uowMock);
     $this->proxyFactory = new ProxyFactory($this->emMock, sys_get_temp_dir(), 'Proxies', true);
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     parent::setUp();
     $this->_connectionMock = new ConnectionMock(array(), new DriverMock());
     $this->_emMock = EntityManagerMock::create($this->_connectionMock);
     // SUT
     $this->_unitOfWork = new UnitOfWorkMock($this->_emMock);
     $this->_emMock->setUnitOfWork($this->_unitOfWork);
 }