PHP Класс Contao\CoreBundle\Test\Composer\ScriptHandlerTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
binDirProvider ( ) : array Provides the bin dir data.
setUp ( )
testGeneratesNoRandomSecretIfFileExists ( ) Tests that no secret is generated if the configuration file exists.
testGeneratesNoRandomSecretIfFileExistsArray ( ) Tests that no secret is generated if at least one of multiple configuration files exists.
testGeneratesNoRandomSecretWithoutFileConfig ( ) Tests that no secret is generated if there is no configuration file.
testGeneratesRandomSecret ( ) Tests generating a random secret.
testGeneratesRandomSecretArray ( ) Tests generating a random secret with an array of configuration files.
testGetBinDir ( array $extra, string $expected ) Tests the getBinDir() method.
testGetVerbosityFlag ( ) Tests the getVerbosityFlag() method.
testGetWebDir ( array $extra, string $expected ) Tests the getWebDir() method.
testInstantiation ( ) Tests the object instantiation.
webDirProvider ( ) : array Provides the web dir data.

Приватные методы

Метод Описание
assertRandomSecretDoesNotExist ( ) Asserts that the random secret environment variable is not set.
assertRandomSecretIsValid ( ) Asserts that the random secret environment variable is set and valid.
getComposerEvent ( array $extra = [], string | null $method = null ) : Composer\Script\Event Returns the composer event object.
mockComposer ( Composer\Package\PackageInterface $package ) : Composer\Composer | PHPUnit_Framework_MockObject_MockObject Mocks the Composer object.
mockIO ( string | null $method = null ) : Composer\IO\IOInterface | PHPUnit_Framework_MockObject_MockObject Mocks the IO object.
mockPackage ( array $extras = [] ) : Composer\Package\PackageInterface | PHPUnit_Framework_MockObject_MockObject Mocks the package object.

Описание методов

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

Provides the bin dir data.
public binDirProvider ( ) : array
Результат array

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

public setUp ( )

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

Tests that no secret is generated if the configuration file exists.

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

Tests that no secret is generated if at least one of multiple configuration files exists.

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

Tests that no secret is generated if there is no configuration file.

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

Tests generating a random secret.

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

Tests generating a random secret with an array of configuration files.

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

Tests the getBinDir() method.
public testGetBinDir ( array $extra, string $expected )
$extra array
$expected string

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

Tests the getVerbosityFlag() method.

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

Tests the getWebDir() method.
public testGetWebDir ( array $extra, string $expected )
$extra array
$expected string

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

Tests the object instantiation.
public testInstantiation ( )

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

Provides the web dir data.
public webDirProvider ( ) : array
Результат array