AppserverIo\Appserver\Core\AppEnvironmentHelperTest::testGetEnvironmentAwareGlobPattern PHP Метод

testGetEnvironmentAwareGlobPattern() публичный Метод

Checks if the getEnvironmentAwareGlobPattern() method works as expected.
public testGetEnvironmentAwareGlobPattern ( string $appBase, string $fileGlob, string $fileExtension, array $globDirResult, string $modifier, string $result ) : void
$appBase string The base file path to the application
$fileGlob string The intermediate path (or glob pattern) from app base path to file extension
$fileExtension string The extension of the file
$globDirResult array The result of the internal call to globDir()
$modifier string The modifier we need to test paths through our code
$result string The expected result to test against
Результат void
    public function testGetEnvironmentAwareGlobPattern($appBase, $fileGlob, $fileExtension, $globDirResult, $modifier, $result)
    {
        // set the needed result of the internal globDir() method
        AppEnvironmentHelperMock::setGlobDirResult($globDirResult);
        // set the modifier as we need it
        AppEnvironmentHelperMock::setEnvironmentProperty($modifier);
        $this->assertSame($result, AppEnvironmentHelperMock::getEnvironmentAwareGlobPattern($appBase, $fileGlob, 0, $fileExtension));
    }