/**
  * Create a new database connection mock object for every test.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->concreteQueryBuilder = $this->prophesize(\Doctrine\DBAL\Query\QueryBuilder::class);
     $this->connection = $this->prophesize(Connection::class);
     $this->connection->getDatabasePlatform()->willReturn(new MockPlatform());
     $this->subject = GeneralUtility::makeInstance(QueryBuilder::class, $this->connection->reveal(), null, $this->concreteQueryBuilder->reveal());
 }
 /**
  * Create a new database connection mock object for every test.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->connection = $this->prophesize(Connection::class);
     $this->connection->quoteIdentifier(Argument::cetera())->will(function ($args) {
         return '"' . join('"."', explode('.', $args[0])) . '"';
     });
     $this->connection->quote(Argument::cetera())->will(function ($args) {
         return "'" . $args[0] . "'";
     });
     $this->connection->getDatabasePlatform()->willReturn(new MockPlatform());
     $this->queryContext = GeneralUtility::makeInstance(QueryContext::class);
     $this->expressionBuilder = GeneralUtility::makeInstance(ExpressionBuilder::class, $this->connection->reveal());
 }