PHP 클래스 Contao\CoreBundle\Test\Composer\ScriptHandlerTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: contao/core-bundle

공개 메소드들

메소드 설명
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