Пример #1
0
 public function testLoadAvg()
 {
     $snapshot = new Snapshot(__DIR__ . '/fakeproc');
     $load = $snapshot->loadavg();
     $count = count($load);
     $this->assertEquals($count, 3);
     $this->assertEquals($load[0], 0.0);
     $this->assertEquals($load[1], 0.01);
     $this->assertEquals($load[2], 0.05);
 }