getOsIdentifier() public method

Will return a three character OS identifier e.g. WIN or LIN
public getOsIdentifier ( ) : string
return string
コード例 #1
0
 /**
  * Use to skip your test on windows machines
  *
  * @return null
  */
 protected function skipOnWindows()
 {
     // not testable on Windows machines
     if ($this->service->getOsIdentifier() === 'WIN') {
         $this->markTestSkipped('Not testable on Windows machines');
     }
 }