decrement() public method

public decrement ( $variable )
Example #1
0
 public function testCollectDecrement()
 {
     $expectedArgs = array('points' => array(array('measurement' => 'series-name', 'fields' => array('value' => -1))), 'tags' => array());
     $this->client->expects($this->once())->method('mark')->with($expectedArgs);
     $this->collector->decrement('series-name');
     $this->collector->flush();
 }
Example #2
0
 public function testCollectDecrement()
 {
     $this->client->expects($this->once())->method('mark')->with('series-name', array('value' => -1));
     $this->collector->decrement('series-name');
     $this->collector->flush();
 }