Skip to content

Commit 7fc52a2

Browse files
committed
Skip test if soap-extension not available
1 parent ea31d6a commit 7fc52a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/SAML2/SOAPClientTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Exception;
99
use PHPUnit\Framework\Attributes\CoversClass;
1010
use PHPUnit\Framework\Attributes\DataProvider;
11+
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
1112
use PHPUnit\Framework\TestCase;
1213
use RobRichards\XMLSecLibs\XMLSecurityKey;
1314
use SimpleSAML\Configuration;
@@ -157,6 +158,7 @@ protected function doSoapRequest(
157158
/**
158159
* Use case: send() must throw on an empty SOAP response and on a SOAP Fault response.
159160
*/
161+
#[RequiresPhpExtension('soap')]
160162
#[DataProvider('provideBadSoapResponses')]
161163
public function testSendThrowsOnEmptySoapResponseOrSoapFault(string $soapResponse, string $expectedMessage): void
162164
{

0 commit comments

Comments
 (0)