Example #1
0
 function let(HandlerInterface $requestHandler, SerializerRegistryInterface $serializerRegistry, ActorSerializerInterface $actorSerializer, DocumentDataSerializerInterface $documentDataSerializer, StatementSerializerInterface $statementSerializer, StatementResultSerializerInterface $statementResultSerializer)
 {
     $serializerRegistry->getActorSerializer()->willReturn($actorSerializer);
     $serializerRegistry->getDocumentDataSerializer()->willReturn($documentDataSerializer);
     $serializerRegistry->getStatementSerializer()->willReturn($statementSerializer);
     $serializerRegistry->getStatementResultSerializer()->willReturn($statementResultSerializer);
     $this->beConstructedWith($requestHandler, $serializerRegistry, '1.0.1');
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 public function getAgentProfileApiClient()
 {
     return new AgentProfileApiClient($this->requestHandler, $this->version, $this->serializerRegistry->getDocumentDataSerializer(), $this->serializerRegistry->getActorSerializer());
 }