/** * @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()); }