supports() 공개 메소드

Returns true if the runner is able to run the operation.
public supports ( Tolerance\Operation\Operation $operation ) : boolean
$operation Tolerance\Operation\Operation
리턴 boolean
 function it_supports_what_the_decorated_runner_supports(OperationRunner $decoratedRunner, Operation $firstOperation, Operation $secondOperation)
 {
     $decoratedRunner->supports($firstOperation)->willReturn(true);
     $decoratedRunner->supports($secondOperation)->willReturn(false);
     $this->supports($firstOperation)->shouldBe(true);
     $this->supports($secondOperation)->shouldBe(false);
 }
 function it_do_not_supports_the_operations_supported_if_its_decorated_runner_do_not_supports_it(OperationRunner $runner, Operation $operation)
 {
     $runner->supports($operation)->willReturn(false);
     $this->supports($operation)->shouldReturn(false);
 }
 /**
  * {@inheritdoc}
  */
 public function supports(Operation $operation)
 {
     return $this->decoratedRunner->supports($operation);
 }