/**
  * @param ServiceInfo $serviceInfo
  * @return LogoutRequestBuilder
  */
 protected function createLogoutRequestBuilder(ServiceInfo $serviceInfo)
 {
     $builder = new LogoutRequestBuilder($serviceInfo->getSpProvider()->getEntityDescriptor(), $serviceInfo->getIdpProvider()->getEntityDescriptor(), $serviceInfo->getSpMetaProvider()->getSpMeta());
     return $builder;
 }
Пример #2
0
 /**
  * @test
  */
 public function shouldAllowGetSpMetaProviderWithValueFromConstructor()
 {
     $si = new ServiceInfo($expectedProviderID = 'main', $expectedIDPID = 'idp', $expectedSPProvider = $this->createEntityDescriptorProviderMock(), $expectedIDPProvider = $this->createEntityDescriptorProviderMock(), $expectedSPMeta = $this->createSpMetaProviderMock(), $expectedSigning = $this->createSPSigningProviderMock());
     $this->assertEquals($expectedSPMeta, $si->getSpMetaProvider());
 }