/** * @param ServiceInfo $serviceInfo * @return LogoutRequestBuilder */ protected function createLogoutRequestBuilder(ServiceInfo $serviceInfo) { $builder = new LogoutRequestBuilder($serviceInfo->getSpProvider()->getEntityDescriptor(), $serviceInfo->getIdpProvider()->getEntityDescriptor(), $serviceInfo->getSpMetaProvider()->getSpMeta()); return $builder; }
/** * @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()); }