Skip to content

Commit

Permalink
Merge pull request #607 from SAML-Toolkits/php84_fix_test_warnings
Browse files Browse the repository at this point in the history
Php84 fix test warnings
  • Loading branch information
pitbulk authored Jan 13, 2025
2 parents cace752 + 7516681 commit 76236a6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
service_name: travis-ci
service_name: github

src_dir: lib
src_dir: src

coverage_clover: tests/build/logs/clover.xml

Expand Down
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions tests/src/OneLogin/Saml2/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1607,10 +1607,12 @@ public function testIsInValidCert()

$response = new Response($settings, $xml);

$this->assertFalse($response->isValid());
$this->assertFalse(@$response->isValid());

$possibleErrors = [
"openssl_x509_read(): supplied parameter cannot be coerced into an X509 certificate!",
"openssl_x509_read(): X.509 Certificate cannot be retrieved"
"openssl_x509_read(): X.509 Certificate cannot be retrieved",
"Unable to extract public key"
];
$this->assertTrue(in_array($response->getError(), $possibleErrors));
}
Expand Down
4 changes: 2 additions & 2 deletions tests/src/OneLogin/Saml2/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function testThatOnlyBooleansCanBeUsedForCompressionSettings($invalidValu
$this->assertTrue($responsesIsInvalid);
}

public function invalidCompressSettingsProvider()
static public function invalidCompressSettingsProvider()
{
return array(
array(1),
Expand Down Expand Up @@ -539,7 +539,7 @@ public function testGetSPMetadataWithX509CertNew($alwaysIncludeEncryption, $want
$this->assertEquals($expectEncryptionKeyDescriptor ? 2 : 0, substr_count($metadata, '<md:KeyDescriptor use="encryption"'));
}

public function getSPMetadataWithX509CertNewDataProvider()
static public function getSPMetadataWithX509CertNewDataProvider()
{
return [
'settings do not require encryption' => [
Expand Down

0 comments on commit 76236a6

Please sign in to comment.