public function testGivenConflictingHashNamespaceCombinations_alreadySeenReturnsFalse()
 {
     $bag = new HashDedupeBag(2);
     $this->assertFalse($bag->alreadySeen('YZ', 'X'));
     $this->assertFalse($bag->alreadySeen('Z', 'XY'));
     $this->assertFalse($bag->alreadySeen('YZ', 'X'));
     $this->assertFalse($bag->alreadySeen('Z', 'XY'));
 }
 /**
  * @dataProvider provideAddEntity_seen
  */
 public function testAddEntity_seen($entityName, $dataSetName, array $referencesSeen)
 {
     $entity = $this->getTestData()->getEntity($entityName);
     $dedupe = new HashDedupeBag();
     foreach ($referencesSeen as $hash) {
         $dedupe->alreadySeen($hash, 'R');
     }
     $mentioned = array();
     $builder = $this->newBuilder(RdfProducer::PRODUCE_ALL, $mentioned, $dedupe);
     $builder->addEntity($entity);
     $this->assertOrCreateNTriples($dataSetName, $builder);
 }