public process ( |
||
$serviceProviderConfiguration | ||
$identityProviderConfiguration | ||
$currentDestination | SAML2\Configuration\Destination | |
$response | SAML2\Response | |
Résultat | Collection (\SAML2\Utilities\ArrayCollection) of \SAML2\Assertion objects |
/** * @expectedException \SAML2\Response\Exception\UnsignedResponseException * @runInSeparateProcess */ public function testThatAnUnsignedResponseWithNoSignedAssertionsThrowsAnException() { // here the processAssertions may not be called as it should fail with an exception due to having no signature $this->assertionProcessor->shouldReceive('processAssertions')->never(); $processor = new Processor(new \Psr\Log\NullLogger()); $processor->process(new ServiceProvider(array()), new IdentityProvider(array()), new Destination($this->currentDestination), $this->getUnsignedResponseWithUnsignedAssertion()); }