PHP 클래스 Alex\BehatLauncher\Behat\Project

상속: implements Symfony\Component\Serializer\Normalizer\NormalizableInterface
파일 보기 프로젝트 열기: alexandresalome/behat-launcher 1 사용 예제들

공개 메소드들

메소드 설명
__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