PHP Class spec\GrumPHP\Collection\TaskResultCollectionSpec

Inheritance: extends PhpSpec\ObjectBehavior
显示文件 Open project: phpro/grumphp

Public Methods

Method Description
it_contains_task_result ( TaskResult $taskResult )
it_filters_by_result_code ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
it_has_failed_if_it_contains_failed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
it_is_initializable ( )
it_is_not_passed_if_it_contains_a_failed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
it_is_not_passed_if_it_does_not_contains_any_task ( )
it_is_passed_if_it_contains_only_passed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
it_returns_all_task_result_messages ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
it_returns_failed_code_if_it_contains_a_failed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
it_returns_no_task_code_if_it_does_not_contains_any_task ( )
it_returns_passed_code_if_it_contains_only_passed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )

Method Details

it_contains_task_result() public method

public it_contains_task_result ( TaskResult $taskResult )
$taskResult GrumPHP\Runner\TaskResult

it_filters_by_result_code() public method

public it_filters_by_result_code ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface

it_has_failed_if_it_contains_failed_task_result() public method

public it_has_failed_if_it_contains_failed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface

it_is_initializable() public method

public it_is_initializable ( )

it_is_not_passed_if_it_contains_a_failed_task_result() public method

public it_is_not_passed_if_it_contains_a_failed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface

it_is_not_passed_if_it_does_not_contains_any_task() public method

it_is_passed_if_it_contains_only_passed_task_result() public method

public it_is_passed_if_it_contains_only_passed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface

it_returns_all_task_result_messages() public method

public it_returns_all_task_result_messages ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface

it_returns_failed_code_if_it_contains_a_failed_task_result() public method

public it_returns_failed_code_if_it_contains_a_failed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface

it_returns_no_task_code_if_it_does_not_contains_any_task() public method

it_returns_passed_code_if_it_contains_only_passed_task_result() public method

public it_returns_passed_code_if_it_contains_only_passed_task_result ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context )
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface