function it_should_call_the_callable(Operation $operation) { $operation->run()->shouldBeCalled(); $this->beConstructedWith(function () use($operation) { $operation->getWrappedObject()->run(); }); $this->run(); }
function it_should_run_an_operation(Operation $operation) { $operation->run()->shouldBeCalled(); $this->run($operation); }
/** * {@inheritdoc} */ public function run(Operation $operation) { return $operation->run(); }