increment() public method

public increment ( $variable )
Esempio n. 1
0
 public function testCollectIncrement()
 {
     $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->increment('series-name');
     $this->collector->flush();
 }
Esempio n. 2
0
 public function testCollectIncrement()
 {
     $this->client->expects($this->once())->method('mark')->with('series-name', array('value' => 1));
     $this->collector->increment('series-name');
     $this->collector->flush();
 }