PHP Class Pulsestorm\Pestle\TestsIntegration\PestleTestIntegration

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
ファイルを表示 Open project: astorm/pestle

Protected Properties

Property Type Description
$packageName
$packageNames string[]
$removeApp

Public Methods

Method Description
testDiXmlExists ( ) Check the di.xml exists, if it does not then something is wrong with the install.
testPestleIsAvailable ( ) Check the pestle command is available in the current environment.

Protected Methods

Method Description
createFakeMagentoInstance ( ) Create app/etc/di.xml so pestle.phar can work.
deleteDirectoryTree ( $directory ) : boolean Delete a directory tree: http://php.net/manual/en/function.rmdir.php
getPestlePackage ( ) : string | boolean Get the correct pestle package name from the users system.
isPackageAvailable ( $package ) : boolean Check if a package is available.
runCommand ( $cmd = false ) : mixed Run a command from users pestle implementation.
setUp ( ) Setup the integration tests.
tearDown ( ) Tear down the integration tests.

Method Details

createFakeMagentoInstance() protected method

Create app/etc/di.xml so pestle.phar can work.

deleteDirectoryTree() protected method

Delete a directory tree: http://php.net/manual/en/function.rmdir.php
protected deleteDirectoryTree ( $directory ) : boolean
$directory
return boolean

getPestlePackage() protected method

Get the correct pestle package name from the users system.
protected getPestlePackage ( ) : string | boolean
return string | boolean

isPackageAvailable() protected method

Check if a package is available.
protected isPackageAvailable ( $package ) : boolean
$package
return boolean

runCommand() protected method

Run a command from users pestle implementation.
protected runCommand ( $cmd = false ) : mixed
$cmd
return mixed

setUp() protected method

Setup the integration tests.
protected setUp ( )

tearDown() protected method

Tear down the integration tests.
protected tearDown ( )

testDiXmlExists() public method

Check the di.xml exists, if it does not then something is wrong with the install.
public testDiXmlExists ( )

testPestleIsAvailable() public method

Check the pestle command is available in the current environment.

Property Details

$packageName protected_oe property

protected $packageName

$packageNames protected_oe property

protected string[] $packageNames
return string[]

$removeApp protected_oe property

protected $removeApp