|
19 | 19 | use SimpleSAML\XML\DOMDocumentFactory; |
20 | 20 | use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait; |
21 | 21 | use SimpleSAML\XML\TestUtils\SerializableElementTestTrait; |
| 22 | +use SimpleSAML\XMLSchema\Type\AnyURIValue; |
| 23 | +use SimpleSAML\XMLSchema\Type\StringValue; |
22 | 24 |
|
23 | 25 | use function dirname; |
24 | 26 | use function strval; |
@@ -80,17 +82,17 @@ public static function setUpBeforeClass(): void |
80 | 82 | */ |
81 | 83 | public function testMarshalling(): void |
82 | 84 | { |
83 | | - $attr1 = new Attribute('urn:x-simplesamlphp:namespace', 'ssp', 'test1', 'value1'); |
84 | | - $attr2 = new Attribute('urn:x-simplesamlphp:namespace', 'ssp', 'test2', 'value2'); |
85 | | - $attr3 = new Attribute('urn:x-simplesamlphp:namespace', 'ssp', 'test3', 'value3'); |
86 | | - $attr4 = new Attribute('urn:x-simplesamlphp:namespace', 'ssp', 'test4', 'value4'); |
| 85 | + $attr1 = new Attribute('urn:x-simplesamlphp:namespace', 'ssp', 'test1', StringValue::fromString('value1')); |
| 86 | + $attr2 = new Attribute('urn:x-simplesamlphp:namespace', 'ssp', 'test2', StringValue::fromString('value2')); |
| 87 | + $attr3 = new Attribute('urn:x-simplesamlphp:namespace', 'ssp', 'test3', StringValue::fromString('value3')); |
| 88 | + $attr4 = new Attribute('urn:x-simplesamlphp:namespace', 'ssp', 'test4', StringValue::fromString('value4')); |
87 | 89 |
|
88 | 90 | $referenceParameters = new ReferenceParameters([new Chunk(self::$referenceParametersContent)], [$attr4]); |
89 | 91 | $metadata = new Metadata([new Chunk(self::$metadataContent)], [$attr3]); |
90 | 92 | $chunk = new Chunk(self::$customContent); |
91 | 93 |
|
92 | 94 | $endpointReference = new EndpointReference( |
93 | | - new Address('https://login.microsoftonline.com/login.srf', [$attr2]), |
| 95 | + new Address(AnyURIValue::fromString('https://login.microsoftonline.com/login.srf'), [$attr2]), |
94 | 96 | $referenceParameters, |
95 | 97 | $metadata, |
96 | 98 | [$chunk], |
|
0 commit comments