Phpro\SoapClient\Event\RequestEvent::getMethod PHP Method

getMethod() public method

public getMethod ( ) : string
return string
    public function getMethod()
    {
        return $this->method;
    }

Usage Example

 function it_should_start_request(Stopwatch $stopwatch, RequestEvent $event, RequestInterface $request, ClientInterface $client)
 {
     $event->getRequest()->willReturn($request);
     $event->getMethod()->willReturn('soapMethod');
     $event->getClient()->willReturn($client);
     $stopwatch->start(Argument::type('string'))->shouldBeCalled();
     $this->setRequest($event);
     $this->getMethod()->shouldBe('soapMethod');
     $this->getRequest()->shouldBe($request);
     $this->getHash()->shouldStartWith('Double\\ClientInterface');
 }
All Usage Examples Of Phpro\SoapClient\Event\RequestEvent::getMethod