PHP Class AppserverIo\Appserver\Core\Scanner\AbstractScannerTest

Inheritance: extends AppserverIo\Appserver\Core\AbstractTest
Show file Open project: appserver-io/appserver

Public Methods

Method Description
getDistributionVersionDataProvider ( ) : array Data provider for the testGetDistributionVersion() method.
getRestartCommandDataProvider ( ) : array Data provider for the testGetRestartCommand() method.
testGetDistributionVersion ( string $distribution, string | null $distVersion ) : void Tests the getDistributionVersion() method.
testGetRestartCommand ( string $distribution, string | null $distVersion, string $command ) : void Tests the getDistributionVersion() method.

Method Details

getDistributionVersionDataProvider() public method

Data provider for the testGetDistributionVersion() method.

getRestartCommandDataProvider() public method

Data provider for the testGetRestartCommand() method.

testGetDistributionVersion() public method

Tests the getDistributionVersion() method.
public testGetDistributionVersion ( string $distribution, string | null $distVersion ) : void
$distribution string The OS to return the restart command for
$distVersion string | null Version of the operating system to get the restart command for
return void

testGetRestartCommand() public method

Tests the getDistributionVersion() method.
public testGetRestartCommand ( string $distribution, string | null $distVersion, string $command ) : void
$distribution string The OS to return the restart command for
$distVersion string | null Version of the operating system to get the restart command for
$command string The command expected as result
return void