AppserverIo\Appserver\Core\Api\AbstractService::getOsIdentifier PHP Method

getOsIdentifier() public method

Will return a three character OS identifier e.g. WIN or LIN
public getOsIdentifier ( ) : string
return string
    public function getOsIdentifier()
    {
        return FileSystem::getOsIdentifier();
    }

Usage Example

 /**
  * 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');
     }
 }