Property | Type | Description | |
---|---|---|---|
$application | |||
$tempDir | |||
$workDir |
Method | Description | |
---|---|---|
createFixtures ( ) | ||
deleteDirContents ( string $dir ) : boolean | Deletes the contents of a directory. | |
fileDeleteRecursive ( $dir ) | ||
setUp ( ) | ||
setUpBeforeClass ( ) | ||
tearDown ( ) | ||
tearDownAfterClass ( ) | ||
tempdir ( $baseDir = false, $prefix = '' ) | ||
testApplicationCommandStrings ( $argv, $expected ) | Unit tests on the application. We parse several sets of arguments, and check to see if the generate appropriate command strings. | |
testApplicationCommandStringsValues ( ) | ||
testApplicationOutput ( $argv, $envArray, $expected ) | Functional test using a mocked application: we call a script that echos its arguments and prints the COMPOSER_BIN_DIR environment variable. | |
testApplicationOutputValues ( ) | ||
testApplicationWithComposer ( ) | Functional test with the real composer executable. Use cgr to require cgr, although we do so with --no-update to avoid pointlessly downloading files we do not actually need. We therefore only test to see whether the composer.json file is correctly updated; we cannot test to see if the cgr binary is correctly installed in the appropriate bin directory, as this step is not done. | |
testApplicationWithComposerPassthruCommand ( ) | Functional test with the real composer executable. Use cgr to require cgr, although we do so with --no-update to avoid pointlessly downloading files we do not actually need. We therefore only test to see whether the composer.json file is correctly updated; we cannot test to see if the cgr binary is correctly installed in the appropriate bin directory, as this step is not done. | |
testFixtures ( ) |
static public deleteDirContents ( string $dir ) : boolean | ||
$dir | string | The directory to delete. |
return | boolean | FALSE on failure, TRUE if everything was deleted. |
public testApplicationCommandStrings ( $argv, $expected ) |
public testApplicationOutput ( $argv, $envArray, $expected ) |
public testApplicationWithComposer ( ) |
public testApplicationWithComposerPassthruCommand ( ) |