Beispiel #1
0
 /**
  * @covers SysInfo\Linux\CPU::__construct
  * @covers SysInfo\Linux\CPU::getUsertime
  * @covers SysInfo\Linux\CPU::getSystemtime
  * @covers SysInfo\Linux\CPU::getIdletime
  */
 public function testCPUWithSystemData()
 {
     $cpu = new CPU();
     $this->assertInternalType('int', $cpu->getUsertime());
     $this->assertInternalType('int', $cpu->getUsertime(true));
     $this->assertInternalType('int', $cpu->getSystemtime());
     $this->assertInternalType('int', $cpu->getIdletime());
 }