PHP Класс App\Lib\Codeception

(c) James Healey For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$config boolean Merges the Codeception.yml and Webception Codeception.php

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

Метод Описание
__construct ( array $config = [], $site = NULL ) Initialization of the Codeception class.
addTest ( Test $test ) Add a Test to the list.
checkExecutable ( string $file, string $config ) : array Check that the Codeception executable exists and is runnable.
checkWriteable ( $path = null, $config ) : array Check if the Codeception Log Path is writeable.
getCommandPath ( string $type, string $filename, $env ) : string Full command to run a Codeception test.
getEnvironments ( $type )
getLogPath ( ) : string Get the Codeception log path
getRunResponse ( string $type, string $hash ) : array Given a test type & hash, handle the test run response for the AJAX call.
getTest ( string $type, string $hash ) : App\Lib\Test Given a test type & hash, return a single Test.
getTestTally ( ) : integer Return the count of discovered tests
getTests ( ) Get the complete test list.
loadConfig ( string $path, string $file ) : array Load the Codeception YAML configuration.
loadTests ( ) Load the Codeception tests from disk.
ready ( ) : boolean Return if Codeception is ready.
run ( Test $test ) : Test Given a test, run the Codeception test.

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

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

Initialization of the Codeception class.
public __construct ( array $config = [], $site = NULL )
$config array The codeception.php configuration file.

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

Push the tally count up as well.
public addTest ( Test $test )
$test Test

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

Check that the Codeception executable exists and is runnable.
public checkExecutable ( string $file, string $config ) : array
$file string File name of the Codeception executable.
$config string Full path of the config of where the $file was defined.
Результат array Array of flags used in the JSON respone.

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

Check if the Codeception Log Path is writeable.
public checkWriteable ( $path = null, $config ) : array
Результат array Array of flags used in the JSON respone.

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

Full command to run a Codeception test.
public getCommandPath ( string $type, string $filename, $env ) : string
$type string Test Type (Acceptance, Functional, Unit)
$filename string Name of the Test
Результат string Full command to execute Codeception with requred parameters.

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

public getEnvironments ( $type )

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

Get the Codeception log path
public getLogPath ( ) : string
Результат string

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

Given a test type & hash, handle the test run response for the AJAX call.
public getRunResponse ( string $type, string $hash ) : array
$type string Test type (Unit, Acceptance, Functional)
$hash string Hash of the test.
Результат array Array of flags used in the JSON respone.

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

Given a test type & hash, return a single Test.
public getTest ( string $type, string $hash ) : App\Lib\Test
$type string Test type (Unit, Acceptance, Functional)
$hash string Hash of the test.
Результат App\Lib\Test or FALSE.

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

Return the count of discovered tests
public getTestTally ( ) : integer
Результат integer $this->tally

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

Get the complete test list.
public getTests ( )

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

Load the Codeception YAML configuration.
public loadConfig ( string $path, string $file ) : array
$path string
$file string
Результат array $config

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

Load the Codeception tests from disk.
public loadTests ( )

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

Return if Codeception is ready.
public ready ( ) : boolean
Результат boolean

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

Given a test, run the Codeception test.
public run ( Test $test ) : Test
$test Test Current test to Run.
Результат Test $test Updated test with log and result.

Описание свойств

$config публичное свойство

Merges the Codeception.yml and Webception Codeception.php
public bool $config
Результат boolean