PHP Класс Alex\BehatLauncher\Behat\Project

Наследование: implements Symfony\Component\Serializer\Normalizer\NormalizableInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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 addFormat ( string $format ) : Project
$format string a behat format (pretty, html, failed)
Результат Project

addProperty() публичный метод

Adds a property to the project.
public addProperty ( ProjectProperty $property ) : Project
$property ProjectProperty a project's property
Результат Project

createProperty() публичный метод

public createProperty ( $name )

createRun() публичный метод

Creates a run for the project.
public createRun ( ) : Run
Результат Run

getBehatBin() публичный метод

Returns path to behat binary
public getBehatBin ( ) : string
Результат string

getConfig() публичный метод

Merges values with actual project configuration (from behat.yml).
public getConfig ( array $values = [] ) : array
$values array
Результат array

getFeatures() публичный метод

public getFeatures ( ) : FeatureDirectory
Результат FeatureDirectory

getFeaturesPath() публичный метод

Change directory containing .features files.
public getFeaturesPath ( ) : string
Результат string

getFormats() публичный метод

public getFormats ( ) : array
Результат array an array of string, behat format (pretty, html, failed)

getName() публичный метод

Returns project's name.
public getName ( ) : string
Результат string project name

getPath() публичный метод

Returns project path.
public getPath ( ) : string
Результат string a path

getProperties() публичный метод

Returns project's properties.
public getProperties ( ) : array
Результат array an array of ProjectProperty

getRunnerCount() публичный метод

Returns number of parallel processes a project can have.
public getRunnerCount ( ) : integer
Результат integer

normalize() публичный метод

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

setBehatBin() публичный метод

Changes path to behat binary.
public setBehatBin ( string $behatBin ) : Project
$behatBin string
Результат Project

setFeaturesPath() публичный метод

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

setFormats() публичный метод

public setFormats ( array $formats ) : Project
$formats array
Результат Project

setName() публичный метод

Changes project name.
public setName ( string $name ) : Project
$name string new project name
Результат Project

setPath() публичный метод

Changes project's path.
public setPath ( string $path ) : Project
$path string a path to set
Результат Project

setProperties() публичный метод

Changes all project's properties.
public setProperties ( array $properties ) : Project
$properties array an array of ProjectProperty objects.
Результат Project

setRunnerCount() публичный метод

Changes number of parallel processes a project can have.
public setRunnerCount ( integer $runnerCount ) : Project
$runnerCount integer
Результат Project