PHP Class Alex\BehatLauncher\Behat\Project

Inheritance: implements Symfony\Component\Serializer\Normalizer\NormalizableInterface
Show file Open project: alexandresalome/behat-launcher Class Usage Examples

Public Methods

Method Description
__construct ( string $name = null, string $path = null, array $properties = [] ) Creates a new Behat Launcher project, to execute runs on it.
addFormat ( string $format ) : Project
addProperty ( ProjectProperty $property ) : Project Adds a property to the project.
createProperty ( $name )
createRun ( ) : Run Creates a run for the project.
getBehatBin ( ) : string Returns path to behat binary
getConfig ( array $values = [] ) : array Merges values with actual project configuration (from behat.yml).
getFeatures ( ) : FeatureDirectory
getFeaturesPath ( ) : string Change directory containing .features files.
getFormats ( ) : array
getName ( ) : string Returns project's name.
getPath ( ) : string Returns project path.
getProperties ( ) : array Returns project's properties.
getRunnerCount ( ) : integer Returns number of parallel processes a project can have.
normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )
setBehatBin ( string $behatBin ) : Project Changes path to behat binary.
setFeaturesPath ( string $featuresPath ) Returns directory containing .features files.
setFormats ( array $formats ) : Project
setName ( string $name ) : Project Changes project name.
setPath ( string $path ) : Project Changes project's path.
setProperties ( array $properties ) : Project Changes all project's properties.
setRunnerCount ( integer $runnerCount ) : Project Changes number of parallel processes a project can have.

Method Details

__construct() public method

Creates a new Behat Launcher project, to execute runs on it.
public __construct ( string $name = null, string $path = null, array $properties = [] )
$name string project name
$path string path to the Behat project
$properties array an array of ProjectProperty objects

addFormat() public method

public addFormat ( string $format ) : Project
$format string a behat format (pretty, html, failed)
return Project

addProperty() public method

Adds a property to the project.
public addProperty ( ProjectProperty $property ) : Project
$property ProjectProperty a project's property
return Project

createProperty() public method

public createProperty ( $name )

createRun() public method

Creates a run for the project.
public createRun ( ) : Run
return Run

getBehatBin() public method

Returns path to behat binary
public getBehatBin ( ) : string
return string

getConfig() public method

Merges values with actual project configuration (from behat.yml).
public getConfig ( array $values = [] ) : array
$values array
return array

getFeatures() public method

public getFeatures ( ) : FeatureDirectory
return FeatureDirectory

getFeaturesPath() public method

Change directory containing .features files.
public getFeaturesPath ( ) : string
return string

getFormats() public method

public getFormats ( ) : array
return array an array of string, behat format (pretty, html, failed)

getName() public method

Returns project's name.
public getName ( ) : string
return string project name

getPath() public method

Returns project path.
public getPath ( ) : string
return string a path

getProperties() public method

Returns project's properties.
public getProperties ( ) : array
return array an array of ProjectProperty

getRunnerCount() public method

Returns number of parallel processes a project can have.
public getRunnerCount ( ) : integer
return integer

normalize() public method

public normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )
$normalizer Symfony\Component\Serializer\Normalizer\NormalizerInterface
$context array

setBehatBin() public method

Changes path to behat binary.
public setBehatBin ( string $behatBin ) : Project
$behatBin string
return Project

setFeaturesPath() public method

Returns directory containing .features files.
public setFeaturesPath ( string $featuresPath )
$featuresPath string

setFormats() public method

public setFormats ( array $formats ) : Project
$formats array
return Project

setName() public method

Changes project name.
public setName ( string $name ) : Project
$name string new project name
return Project

setPath() public method

Changes project's path.
public setPath ( string $path ) : Project
$path string a path to set
return Project

setProperties() public method

Changes all project's properties.
public setProperties ( array $properties ) : Project
$properties array an array of ProjectProperty objects.
return Project

setRunnerCount() public method

Changes number of parallel processes a project can have.
public setRunnerCount ( integer $runnerCount ) : Project
$runnerCount integer
return Project