GrumPHP\Task\TaskInterface::canRunInContext PHP Method

canRunInContext() public method

This methods specifies if a task can run in a specific context.
public canRunInContext ( GrumPHP\Task\Context\ContextInterface $context ) : boolean
$context GrumPHP\Task\Context\ContextInterface
return boolean
    public function canRunInContext(ContextInterface $context);

Usage Example

Beispiel #1
0
 public function let(TaskInterface $task1, TaskInterface $task2, ContextInterface $context)
 {
     $task1->canRunInContext($context)->willReturn(true);
     $task2->canRunInContext($context)->willReturn(true);
     $this->addTask($task1);
     $this->addTask($task2);
 }
All Usage Examples Of GrumPHP\Task\TaskInterface::canRunInContext