Example #1
0
 public function testDetectProcessorNumber()
 {
     $machine = new MachineForTest();
     if (!$machine->detectProcessorNumber()) {
         skip();
     }
     ok($machine->detectProcessorNumber() > 0);
     is($machine->detectProcessorNumber(), $machine->detectProcessorNumberByNproc() || $machine->detectProcessorNumberByGrep());
 }
Example #2
0
 public function testDetectProcessorNumber()
 {
     $machine = new MachineForTest();
     if (!$machine->detectProcessorNumber()) {
         return $this->markTestSkipped('processor number detect failed.');
     }
     ok($machine->detectProcessorNumber() > 0);
     is($machine->detectProcessorNumber(), $machine->detectProcessorNumberByNproc() || $machine->detectProcessorNumberByGrep());
 }