Skip to content

Commit

Permalink
Raise coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Dec 30, 2023
1 parent 7a59433 commit 0308d94
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 52 deletions.
51 changes: 0 additions & 51 deletions src/XML/sp/IncludeTokenOpenTypeTrait.php

This file was deleted.

1 change: 1 addition & 0 deletions tests/WSSecurity/XML/sp/HttpsTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Class \SimpleSAML\WSSecurity\XML\sp\HttpsTokenTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\HttpsToken
* @covers \SimpleSAML\WSSecurity\XML\sp\IncludeTokenTypeTrait
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractAssertionTokenType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/sp/IssuedTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Class \SimpleSAML\WSSecurity\XML\sp\IssuedTokenTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\IssuedToken
* @covers \SimpleSAML\WSSecurity\XML\sp\IncludeTokenTypeTrait
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractIssuedTokenType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/sp/KerberosTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Class \SimpleSAML\WSSecurity\XML\sp\KerberosTokenTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\KerberosToken
* @covers \SimpleSAML\WSSecurity\XML\sp\IncludeTokenTypeTrait
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractAssertionTokenType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/sp/KeyValueTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Class \SimpleSAML\WSSecurity\XML\sp\KeyValueTokenTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\KeyValueToken
* @covers \SimpleSAML\WSSecurity\XML\sp\IncludeTokenTypeTrait
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractKeyValueTokenType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/sp/RelTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Class \SimpleSAML\WSSecurity\XML\sp\RelTokenTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\RelToken
* @covers \SimpleSAML\WSSecurity\XML\sp\IncludeTokenTypeTrait
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractAssertionTokenType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
Expand Down
7 changes: 6 additions & 1 deletion tests/WSSecurity/XML/sp/RequestSecurityTokenTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ public function testMarshalling(): void
'<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>'
)->documentElement);

$RequestSecurityTokenTemplateElements = new RequestSecurityTokenTemplate('urn:x-simplesamlphp:version', [$chunk], [$attr]);
$RequestSecurityTokenTemplateElements = new RequestSecurityTokenTemplate(
'urn:x-simplesamlphp:version',
[$chunk],
[$attr],
);

$this->assertEquals(
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),
strval($RequestSecurityTokenTemplateElements),
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/sp/SamlTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Class \SimpleSAML\WSSecurity\XML\sp\SamlTokenTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\SamlToken
* @covers \SimpleSAML\WSSecurity\XML\sp\IncludeTokenTypeTrait
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractAssertionTokenType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/sp/SecurityContextTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Class \SimpleSAML\WSSecurity\XML\sp\SecurityContextTokenTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\SecurityContextToken
* @covers \SimpleSAML\WSSecurity\XML\sp\IncludeTokenTypeTrait
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractAssertionTokenType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/sp/UsernameTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Class \SimpleSAML\WSSecurity\XML\sp\UsernameTokenTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\UsernameToken
* @covers \SimpleSAML\WSSecurity\XML\sp\IncludeTokenTypeTrait
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractAssertionTokenType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/sp/X509TokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Class \SimpleSAML\WSSecurity\XML\sp\X509lTokenTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\X509Token
* @covers \SimpleSAML\WSSecurity\XML\sp\IncludeTokenTypeTrait
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractAssertionTokenType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
Expand Down

0 comments on commit 0308d94

Please sign in to comment.