PHP Class Codeception\Module\WPCLITest

Inheritance: extends Codeception\Test\Unit
Show file Open project: lucatume/wp-browser

Protected Properties

Property Type Description
$backupGlobals
$config array
$executor tad\WPBrowser\Environment\Executor
$moduleContainer Codeception\Lib\ModuleContainer
$root org\bovigo\vfs\vfsStreamDirectory
$tester UnitTester

Public Methods

Method Description
cliReturnValues ( )
it_should_allow_defining_a_split_callback_function ( )
it_should_allow_overriding_options_with_inline_command ( $option, $optionValue )
it_should_allow_setting_additional_wp_cli_options_in_the_config_file ( $option, $optionValue )
it_should_be_instantiatable ( )
it_should_call_the_executor_with_proper_parameters ( )
it_should_call_the_split_callback_even_if_the_output_is_an_array ( )
it_should_cast_wp_cli_errors_to_exceptions_if_specified_in_config ( )
it_should_handle_the_case_where_the_command_output_is_an_empty_array ( )
it_should_handle_the_case_where_the_command_output_is_not_a_string ( )
it_should_handle_the_case_where_the_command_output_is_null ( )
it_should_not_cast_output_to_any_format ( $raw, $expected )
it_should_not_throw_any_exception_if_specified_in_config ( )
it_should_skip_some_options_by_default ( $option )
it_should_throw_if_path_is_not_folder ( )
it_should_throw_if_split_callback_function_does_not_return_an_array ( )
optionalOptionsWithArguments ( )
skippedOptions ( )

Protected Methods

Method Description
_before ( )

Private Methods

Method Description
make_instance ( ) : WPCLI

Method Details

_before() protected method

protected _before ( )

cliReturnValues() public method

public cliReturnValues ( )

it_should_allow_defining_a_split_callback_function() public method

it_should_allow_overriding_options_with_inline_command() public method

it_should_allow_setting_additional_wp_cli_options_in_the_config_file() public method

it_should_be_instantiatable() public method

it_should_call_the_executor_with_proper_parameters() public method

it_should_call_the_split_callback_even_if_the_output_is_an_array() public method

it_should_cast_wp_cli_errors_to_exceptions_if_specified_in_config() public method

it_should_handle_the_case_where_the_command_output_is_an_empty_array() public method

it_should_handle_the_case_where_the_command_output_is_not_a_string() public method

it_should_handle_the_case_where_the_command_output_is_null() public method

it_should_not_cast_output_to_any_format() public method

public it_should_not_cast_output_to_any_format ( $raw, $expected )

it_should_not_throw_any_exception_if_specified_in_config() public method

it_should_skip_some_options_by_default() public method

it_should_throw_if_path_is_not_folder() public method

it_should_throw_if_split_callback_function_does_not_return_an_array() public method

optionalOptionsWithArguments() public method

skippedOptions() public method

public skippedOptions ( )

Property Details

$backupGlobals protected property

protected $backupGlobals

$config protected property

protected array $config
return array

$executor protected property

protected Executor,tad\WPBrowser\Environment $executor
return tad\WPBrowser\Environment\Executor

$moduleContainer protected property

protected ModuleContainer,Codeception\Lib $moduleContainer
return Codeception\Lib\ModuleContainer

$root protected property

protected vfsStreamDirectory,org\bovigo\vfs $root
return org\bovigo\vfs\vfsStreamDirectory

$tester protected property

protected UnitTester $tester
return UnitTester