/**
  * @test
  */
 public function willNotTellTransformerToCoerceRequestWhenNotMasterRequest()
 {
     $this->eventMock->expects($this->once())->method('isMasterRequest')->willReturn(false);
     $this->documentMock->expects($this->never())->method('getOperationDefinition');
     $this->transformerMock->expects($this->never())->method('process');
     $this->listener->onKernelRequest($this->eventMock);
 }
 /**
  * @test
  */
 public function willNotHandleIfNoDocumentUriInAttributes()
 {
     $this->eventMock->expects($this->once())->method('isMasterRequest')->willReturn(true);
     $this->eventMock->expects($this->once())->method('getRequest')->willReturn(new Request());
     $this->processorMock->expects($this->never())->method('process');
     $this->listener->onKernelRequest($this->event);
 }