/**
  * @dataProvider idProvider
  */
 public function testGenerateDump(array $ids, $dumpname)
 {
     $jsonTest = new JsonDumpGeneratorTest();
     $entities = $jsonTest->makeEntities($ids);
     $redirects = array('Q4242' => new ItemId('Q42'));
     $dumper = $this->newDumpGenerator($entities, $redirects);
     $dumper->setTimestamp(1000000);
     $jsonTest = new JsonDumpGeneratorTest();
     $pager = $jsonTest->makeIdPager($ids);
     ob_start();
     $dumper->generateDump($pager);
     $actual = ob_get_clean();
     $expected = $this->getTestData()->getNTriples($dumpname);
     $this->helper->assertNTriplesEquals($expected, $actual);
 }
 /**
  * @dataProvider idProvider
  */
 public function testGenerateDump(array $ids, $dumpname)
 {
     $jsonTest = new JsonDumpGeneratorTest();
     $entities = $jsonTest->makeEntities($ids);
     $redirects = array('Q4242' => new ItemId('Q42'));
     $dumper = $this->newDumpGenerator($entities, $redirects);
     $dumper->setTimestamp(1000000);
     $jsonTest = new JsonDumpGeneratorTest();
     $pager = $jsonTest->makeIdPager($ids);
     ob_start();
     $dumper->generateDump($pager);
     $dump = ob_get_clean();
     $dump = $this->normalizeData($dump);
     $this->assertTriplesEqual($this->getSerializedData($dumpname), $dump);
 }