PHP 클래스 Consolidation\Cgr\CgrTests

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: consolidation/cgr

보호된 프로퍼티들

프로퍼티 타입 설명
$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