PHP Class Alex\BehatLauncher\Behat\Project

Inheritance: implements Symfony\Component\Serializer\Normalizer\NormalizableInterface
Afficher le fichier Open project: alexandresalome/behat-launcher Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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 méthode

public addFormat ( string $format ) : Project
$format string a behat format (pretty, html, failed)
Résultat Project

addProperty() public méthode

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

createProperty() public méthode

public createProperty ( $name )

createRun() public méthode

Creates a run for the project.
public createRun ( ) : Run
Résultat Run

getBehatBin() public méthode

Returns path to behat binary
public getBehatBin ( ) : string
Résultat string

getConfig() public méthode

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

getFeatures() public méthode

public getFeatures ( ) : FeatureDirectory
Résultat FeatureDirectory

getFeaturesPath() public méthode

Change directory containing .features files.
public getFeaturesPath ( ) : string
Résultat string

getFormats() public méthode

public getFormats ( ) : array
Résultat array an array of string, behat format (pretty, html, failed)

getName() public méthode

Returns project's name.
public getName ( ) : string
Résultat string project name

getPath() public méthode

Returns project path.
public getPath ( ) : string
Résultat string a path

getProperties() public méthode

Returns project's properties.
public getProperties ( ) : array
Résultat array an array of ProjectProperty

getRunnerCount() public méthode

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

normalize() public méthode

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

setBehatBin() public méthode

Changes path to behat binary.
public setBehatBin ( string $behatBin ) : Project
$behatBin string
Résultat Project

setFeaturesPath() public méthode

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

setFormats() public méthode

public setFormats ( array $formats ) : Project
$formats array
Résultat Project

setName() public méthode

Changes project name.
public setName ( string $name ) : Project
$name string new project name
Résultat Project

setPath() public méthode

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

setProperties() public méthode

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

setRunnerCount() public méthode

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