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.
파일 보기 프로젝트 열기: jayhealey/webception

공개 프로퍼티들

프로퍼티 타입 설명
$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