Author: Bernhard Wick (bw@appserver.io)
Inheritance: extends AppserverIo\Appserver\Core\Scanner\AbstractScanner
 /**
  * Tests the getDistributionVersion() method.
  *
  * @param string      $distribution The OS to return the restart command for
  * @param string|null $distVersion  Version of the operating system to get the restart command for
  *
  * @return void
  *
  * @dataProvider getDistributionVersionDataProvider
  */
 public function testGetDistributionVersion($distribution, $distVersion)
 {
     // mock the configuration
     $mockScanner = new MockAbstractScanner($this->getMockInitialContext(), 'TestScanner');
     // check that the cache directory has been initialized successfully
     $this->assertSame($distVersion, $mockScanner->testableGetDistributionVersion($distribution));
 }