Skip to content

Commit 2934321

Browse files
tvdijenjaimeperez
authored andcommitted
Bugs
1 parent 4bd7668 commit 2934321

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/XML/ds/Signature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function getObjects(): array
153153
*/
154154
protected function setObjects(array $objects): void
155155
{
156-
Assert::allInstanceOf($objects, Chunk::class);
156+
Assert::allIsInstanceOf($objects, Chunk::class);
157157

158158
foreach ($objects as $o) {
159159
Assert::true(

tests/XML/ds/SignatureTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66

77
use PHPUnit\Framework\TestCase;
88
use SimpleSAML\Test\XML\SerializableXMLTestTrait;
9+
use SimpleSAML\XML\Chunk;
910
use SimpleSAML\XML\DOMDocumentFactory;
11+
use SimpleSAML\XMLSecurity\XML\ds\KeyInfo;
1012
use SimpleSAML\XMLSecurity\XML\ds\Signature;
13+
use SimpleSAML\XMLSecurity\XML\ds\SignatureValue;
14+
use SimpleSAML\XMLSecurity\XML\ds\SignedInfo;
1115

1216
/**
1317
* Class \SimpleSAML\XMLSecurity\Test\XML\ds\SignatureTest

tests/resources/xml/ds_Signature.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@
2121
<ds:KeySomething>Some unknown tag within the ds-namespace</ds:KeySomething>
2222
<some>Chunk</some>
2323
</ds:KeyInfo>
24-
<ds:Object>
25-
<some>Chunk</some>
26-
</ds:Object>
24+
<ds:Object Id="abc123" MimeType="image/png" Encoding="http://www.w3.org/2000/09/xmldsig#base64">iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=</ds:Object>
2725
</ds:Signature>

0 commit comments

Comments
 (0)