コード例 #1
0
ファイル: MachineTest.php プロジェクト: nanasess/phpbrew
 public function testDetectProcessorNumber()
 {
     $machine = new MachineForTest();
     if (!$machine->detectProcessorNumber()) {
         skip();
     }
     ok($machine->detectProcessorNumber() > 0);
     is($machine->detectProcessorNumber(), $machine->detectProcessorNumberByNproc() || $machine->detectProcessorNumberByGrep());
 }
コード例 #2
0
ファイル: MachineTest.php プロジェクト: JoeHorn/phpbrew
 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());
 }