Tebru\Retrofit\Generation\HandlerStack::execute PHP Method

execute() public method

Loop through all handlers, providing the context
public execute ( )
    public function execute()
    {
        foreach ($this->stack as $handler) {
            $handler($this->context);
        }
    }

Usage Example

コード例 #1
0
 public function testExecution()
 {
     $context = Mockery::mock(HandlerContext::class);
     $handler = Mockery::mock(Handler::class);
     $handler->shouldReceive('__invoke')->times(1)->with($context)->andReturn();
     $stack = new HandlerStack($context);
     $stack->push($handler);
     $stack->execute();
 }
All Usage Examples Of Tebru\Retrofit\Generation\HandlerStack::execute