protected function setUp()
 {
     $this->connection = $this->getMockBuilder('Doctrine\\DBAL\\Connection')->disableOriginalConstructor()->getMock();
     $this->logger = $this->getMock('Psr\\Log\\LoggerInterface');
     $this->executor = new MigrationQueryExecutor($this->connection);
     $this->executor->setLogger($this->logger);
 }
 protected function setUp()
 {
     $this->connection = $this->getMockBuilder('Doctrine\\DBAL\\Connection')->disableOriginalConstructor()->getMock();
     $platform = new MySqlPlatform();
     $sm = $this->getMockBuilder('Doctrine\\DBAL\\Schema\\AbstractSchemaManager')->disableOriginalConstructor()->setMethods(['listTables', 'createSchemaConfig'])->getMockForAbstractClass();
     $sm->expects($this->once())->method('listTables')->will($this->returnValue($this->getTables()));
     $sm->expects($this->once())->method('createSchemaConfig')->will($this->returnValue(null));
     $this->connection->expects($this->atLeastOnce())->method('getSchemaManager')->will($this->returnValue($sm));
     $this->connection->expects($this->once())->method('getDatabasePlatform')->will($this->returnValue($platform));
     $this->logger = new ArrayLogger();
     $this->queryExecutor = new MigrationQueryExecutor($this->connection);
     $this->queryExecutor->setLogger($this->logger);
 }