Esempio n. 1
0
 function testRRA()
 {
     $rra = new RRA("AVERAGE", array(0.5, 1, 1000));
     $res = $rra->__toString();
     $this->assertEqual($res, "RRA:AVERAGE:0.5:1:1000", "RRA created");
     $rra = new RRA("HWPREDICT", array(1440, 0.1, 0.0035, 288));
     $res = $rra->__toString();
     $this->assertEqual($res, "RRA:HWPREDICT:1440:0.1:0.0035:288", "RRA created");
 }