Skip to content

Commit

Permalink
Raise coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 25, 2024
1 parent 06a7d5e commit 3c9d692
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/XML/fed/AbstractPseudonymBasisType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ final public function __construct(
}


/**
* Test if an object, at the state it's in, would produce an empty XML-element
*
* @return bool
*/
public function isEmptyElement(): bool
{
return empty($this->getElements())
&& empty($this->getAttributesNS());
}


/**
* Create an instance of this object from its XML representation.
*
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/wst/CodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* Class \SimpleSAML\WSSecurity\XML\wst\CodeTest
*
* @covers \SimpleSAML\WSSecurity\XML\wst\Code
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractStatusCodeOpenEnum
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractWstElement
*
* @package tvdijen/ws-security
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/wst/ComputedKeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Class \SimpleSAML\WSSecurity\XML\wst\ComputedKeyTest
*
* @covers \SimpleSAML\WSSecurity\XML\wst\ComputedKey
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractComputedKeyOpenEnum
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractWstElement
*
* @package tvdijen/ws-security
Expand Down
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/wst/KeyTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Class \SimpleSAML\WSSecurity\XML\wst\KeyTypeTest
*
* @covers \SimpleSAML\WSSecurity\XML\wst\KeyType
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractKeyTypeOpenEnum
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractWstElement
*
* @package tvdijen/ws-security
Expand Down
2 changes: 1 addition & 1 deletion tests/WSSecurity/XML/wst/ParticipantsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Class \SimpleSAML\WSSecurity\XML\wst\ParticipantsTest
*
* @covers \SimpleSAML\WSSecurity\XML\wst\Participants
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractParticipantType
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractParticipantsType
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractWstElement
*
* @package tvdijen/ws-security
Expand Down
11 changes: 11 additions & 0 deletions tests/WSSecurity/XML/wst/SignChallengeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,15 @@ public function testMarshalling(): void
strval($signChallenge),
);
}


/**
* Test creating an empty SignChallenge object from scratch.
*/
public function testMarshallingEmpty(): void
{
$signChallenge = new SignChallenge();

$this->assertTrue($signChallenge->isEmptyElement());
}
}
1 change: 1 addition & 0 deletions tests/WSSecurity/XML/wst/StatusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* Class \SimpleSAML\WSSecurity\XML\wst\StatusTest
*
* @covers \SimpleSAML\WSSecurity\XML\wst\Status
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractStatusType
* @covers \SimpleSAML\WSSecurity\XML\wst\AbstractWstElement
*
* @package tvdijen/ws-security
Expand Down

0 comments on commit 3c9d692

Please sign in to comment.