PHP Class Platformsh\Cli\Tests\Toolstack\BaseToolstackTest

Inheritance: extends PHPUnit_Framework_TestCase, use trait Platformsh\Cli\Tests\HasTempDirTrait
Show file Open project: commerceguys/platform-cli

Protected Properties

Property Type Description
$buildSettings
$builder Platformsh\Cli\Local\LocalBuild
$config Platformsh\Cli\CliConfig
$output Symfony\Component\Console\Output\OutputInterface

Public Methods

Method Description
setUp ( )
setUpBeforeClass ( )

Protected Methods

Method Description
assertBuildSucceeds ( string $sourceDir, array $buildSettings = [] ) : string Test building a project from dummy source code.
createDummyProject ( string $sourceDir ) : string

Method Details

assertBuildSucceeds() protected method

Test building a project from dummy source code.
protected assertBuildSucceeds ( string $sourceDir, array $buildSettings = [] ) : string
$sourceDir string A directory containing source code for the project or app. Files will be copied into a dummy project.
$buildSettings array An array of custom build settings.
return string The project root for the dummy project.

createDummyProject() protected method

protected createDummyProject ( string $sourceDir ) : string
$sourceDir string
return string

setUp() public method

public setUp ( )

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

Property Details

$buildSettings protected property

protected $buildSettings

$builder protected property

protected LocalBuild,Platformsh\Cli\Local $builder
return Platformsh\Cli\Local\LocalBuild

$config protected static property

protected static CliConfig,Platformsh\Cli $config
return Platformsh\Cli\CliConfig

$output protected static property

protected static OutputInterface,Symfony\Component\Console\Output $output
return Symfony\Component\Console\Output\OutputInterface