setUp() protected method

protected setUp ( )
 protected function setUp()
 {
     parent::setUp();
     $storageDir = __DIR__ . '/entities';
     $metaEntityInfo = $this->createEntityInfoMock(['vpidColumnName' => 'vp_id', 'usesGeneratedVpids' => true, 'idColumnName' => 'meta_id', 'parentReference' => 'parent_id'], ['getIgnoredColumns' => []]);
     $entityInfo = $this->createEntityInfoMock(['vpidColumnName' => 'vp_id', 'usesGeneratedVpids' => true, 'idColumnName' => 'post_id'], ['getIgnoredColumns' => []]);
     if (file_exists($storageDir)) {
         FileSystem::remove($storageDir);
     }
     mkdir($storageDir);
     $changeInfoFactory = $this->createChangeInfoFactoryMock();
     $this->parentStorage = new DirectoryStorage($storageDir, $entityInfo, 'prefix_', $changeInfoFactory);
     $this->storage = new MetaEntityStorage($this->parentStorage, $metaEntityInfo, 'prefix_', $changeInfoFactory);
 }
 protected function setUp()
 {
     parent::setUp();
     $storageDir = __DIR__ . '/entities';
     $entityInfo = $this->createEntityInfoMock(['vpidColumnName' => 'vp_id', 'usesGeneratedVpids' => true, 'idColumnName' => 'entity_id'], ['getIgnoredColumns' => ['ignored_column' => null]]);
     $referenceDetails = ['junction-table' => 'junction_table', 'source-entity' => 'some_entity', 'source-column' => 'some_column', 'target-entity' => 'other_entity', 'target-column' => 'other_column'];
     if (file_exists($storageDir)) {
         FileSystem::remove($storageDir);
     }
     mkdir($storageDir);
     $changeInfoFactory = $this->createChangeInfoFactoryMock();
     $this->parentStorage = new DirectoryStorage($storageDir, $entityInfo, 'prefix_', $changeInfoFactory);
     $this->storage = new MnReferenceStorage($this->parentStorage, $referenceDetails);
 }