Beispiel #1
0
 /**
  * Marks a successful request
  *
  * @link http://goo.gl/dtHN34
  * @return void
  */
 public function markSuccess()
 {
     if ($this->stateStorage->isCircuitOpen($this->commandKey)) {
         $this->stateStorage->closeCircuit($this->commandKey);
         // may cause some stats to be removed from reporting, see http://goo.gl/dtHN34
         $this->metrics->resetCounter();
     }
 }
 public function testResetCounter()
 {
     $this->counter->expects($this->once())->method('reset');
     $this->metrics->resetCounter();
 }