PHP Класс Consolidation\Cgr\CgrTests

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

Защищенные свойства (Protected)

Свойство Тип Описание
$application
$tempDir
$workDir

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

Метод Описание
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 ( )

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

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

public createFixtures ( )

deleteDirContents() статический публичный Метод

This is essentially a copy of drush_delete_dir_contents().
См. также: drush_delete_dir_contents()
static public deleteDirContents ( string $dir ) : boolean
$dir string The directory to delete.
Результат boolean FALSE on failure, TRUE if everything was deleted.

fileDeleteRecursive() статический публичный Метод

static public fileDeleteRecursive ( $dir )

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

public setUp ( )

setUpBeforeClass() статический публичный Метод

static public setUpBeforeClass ( )

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

public tearDown ( )

tearDownAfterClass() статический публичный Метод

static public tearDownAfterClass ( )

tempdir() статический публичный Метод

static public tempdir ( $baseDir = false, $prefix = '' )

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

Unit tests on the application. We parse several sets of arguments, and check to see if the generate appropriate command strings.
public testApplicationCommandStrings ( $argv, $expected )

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

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

Functional test using a mocked application: we call a script that echos its arguments and prints the COMPOSER_BIN_DIR environment variable.
public testApplicationOutput ( $argv, $envArray, $expected )

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() публичный Метод

public testFixtures ( )

Описание свойств

$application защищенное свойство

protected $application

$tempDir защищенное статическое свойство

protected static $tempDir

$workDir защищенное свойство

protected $workDir