Skip to content

Commit e98d485

Browse files
committed
TMP: analyze interop issue
1 parent 7b8e7d2 commit e98d485

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/SAML2/Type/AnyURIListValueTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use SimpleSAML\SAML2\Type\AnyURIListValue;
1212
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
1313

14+
use function strval;
15+
1416
/**
1517
* Class \SimpleSAML\Test\SAML2\Type\AnyURIListTest
1618
*
@@ -46,6 +48,16 @@ public function testToArray(): void
4648
}
4749

4850

51+
/**
52+
* Test stringification of AnyURIListValue
53+
*/
54+
public function testToString(): void
55+
{
56+
$anyURIList = AnyURIListValue::fromString("urn:x-simplesamlphp:namespace urn:x-ssp:ns");
57+
$this->assertEquals('urn:x-simplesamlphp:namespace urn:x-ssp:ns', strval($anyURIList));
58+
}
59+
60+
4961
/**
5062
* @return array<string, array{0: true, 1: string}>
5163
*/

0 commit comments

Comments
 (0)