Example #1
0
 /**
  * @dataProvider dataStatistical
  */
 public function testStatisctiaclData($expectedStats, $mockData)
 {
     $graphite = $this->mockFactory->getGraphiteClientMock();
     $target = new Target($graphite, 'test.target', array(), array());
     $graphite->expects($this->once())->method('getData')->will($this->returnValue($mockData));
     $stats = $target->stats();
     $this->assertEquals($expectedStats, $stats);
 }