Esempio n. 1
0
 /**
  * @testdox deduplicate() decrements the use counter of config values contained in the instance
  */
 public function testDeduplicateCascade2()
 {
     $sub = new ConfigValue([0, 0], 'sub');
     $sub->incrementUseCount();
     $sub->incrementUseCount();
     $sub->incrementUseCount();
     $sub->incrementUseCount();
     $configValue = new ConfigValue([$sub, $sub], 'foo');
     $configValue->incrementUseCount();
     $configValue->incrementUseCount();
     $configValue->deduplicate();
     $this->assertSame(2, $sub->getUseCount());
 }