PHP Class kahlan\cli\Kahlan

Inheritance: use trait Kahlan\Filter\Behavior\Filterable
Datei anzeigen Open project: crysalead/kahlan

Protected Properties

Property Type Description
$_autoloader object The runtime autoloader.
$_commandLine object The arguments.
$_reporters object The reporter container.
$_start float Starting time.
$_suite object The suite instance.

Public Methods

Method Description
__construct ( array $options = [] ) The Constructor.
autoloader ( ) : object Returns the attached autoloader instance.
commandLine ( ) : object Returns arguments instance.
composerPostUpdate ( Composer\Script\Event $event ) Warning ! This method should only be called by Composer as an attempt to auto clear up caches automatically when the version of Kahlan is updated.
loadConfig ( string $argv = [] ) Load the config.
registerMatchers ( ) Regiter built-in matchers.
reporters ( ) : object Returns the reporter container.
run ( ) Run the workflow.
status ( ) : integer Returns the exit status.
suite ( ) : object Returns the suite instance.
terminal ( ) : object Gets the default terminal console.

Protected Methods

Method Description
_bootstrap ( ) The default 'bootstrap' filter.
_console ( ) The default 'console' filter.
_coverage ( ) The default 'coverage' filter.
_help ( ) Echoes the help message.
_interceptor ( ) The default 'interceptor' filter.
_load ( ) The default 'load' filter.
_matchers ( ) The default 'matchers' filter.
_namespaces ( ) The default 'namespace' filter.
_patchers ( ) The default 'patcher' filter.
_quit ( ) The default 'quit' filter.
_reporters ( ) The default 'reporters' filter.
_reporting ( ) The default 'reporting' filter.
_run ( ) The default 'run' filter.
_stop ( ) The default 'stop' filter.
_version ( ) Echoes the Kahlan version.

Method Details

__construct() public method

The Constructor.
public __construct ( array $options = [] )
$options array Possible options are: - `'autoloader'` _object_ : The autoloader instance. - `'suite'` _object_ : The suite instance.

_bootstrap() protected method

The default 'bootstrap' filter.
protected _bootstrap ( )

_console() protected method

The default 'console' filter.
protected _console ( )

_coverage() protected method

The default 'coverage' filter.
protected _coverage ( )

_help() protected method

Echoes the help message.
protected _help ( )

_interceptor() protected method

The default 'interceptor' filter.
protected _interceptor ( )

_load() protected method

The default 'load' filter.
protected _load ( )

_matchers() protected method

The default 'matchers' filter.
protected _matchers ( )

_namespaces() protected method

The default 'namespace' filter.
protected _namespaces ( )

_patchers() protected method

The default 'patcher' filter.
protected _patchers ( )

_quit() protected method

The default 'quit' filter.
protected _quit ( )

_reporters() protected method

The default 'reporters' filter.
protected _reporters ( )

_reporting() protected method

The default 'reporting' filter.
protected _reporting ( )

_run() protected method

The default 'run' filter.
protected _run ( )

_stop() protected method

The default 'stop' filter.
protected _stop ( )

_version() protected method

Echoes the Kahlan version.
protected _version ( )

autoloader() public method

Returns the attached autoloader instance.
public autoloader ( ) : object
return object

commandLine() public method

Returns arguments instance.
public commandLine ( ) : object
return object

composerPostUpdate() public static method

It will have no effect if the cache location is changed the default config file (i.e. 'kahlan-config.php').
public static composerPostUpdate ( Composer\Script\Event $event )
$event Composer\Script\Event

loadConfig() public method

Load the config.
public loadConfig ( string $argv = [] )
$argv string The command line string.

registerMatchers() public static method

Regiter built-in matchers.
public static registerMatchers ( )

reporters() public method

Returns the reporter container.
public reporters ( ) : object
return object

run() public method

Run the workflow.
public run ( )

status() public method

Returns the exit status.
public status ( ) : integer
return integer The exit status.

suite() public method

Returns the suite instance.
public suite ( ) : object
return object

terminal() public method

Gets the default terminal console.
public terminal ( ) : object
return object The default terminal console.

Property Details

$_autoloader protected_oe property

The runtime autoloader.
protected object $_autoloader
return object

$_commandLine protected_oe property

The arguments.
protected object $_commandLine
return object

$_reporters protected_oe property

The reporter container.
protected object $_reporters
return object

$_start protected_oe property

Starting time.
protected float $_start
return float

$_suite protected_oe property

The suite instance.
protected object $_suite
return object