protected function setUp() { ConnectionMock::$transactionNumber = 0; $this->entityManager = new EntityManagerSpy(); $this->transaction = new EntityManagerTransactionAdapter($this->entityManager); }
public function rollback() { $this->conn->rollback(); }
protected function setUp() { ConnectionMock::$transactionNumber = 0; $this->entityManager = new EntityManagerSpy(); $this->transaction = new DoctrineDBALConnectionTransactionAdapter($this->entityManager->getConnection()); }