File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 77use PHPUnit \Framework \Attributes \CoversClass ;
88use PHPUnit \Framework \Attributes \Group ;
99use PHPUnit \Framework \TestCase ;
10+ use SimpleSAML \Assert \AssertionFailedException ;
1011use SimpleSAML \SAML2 \Constants as C ;
1112use SimpleSAML \SAML2 \Type \SAMLAnyURIValue ;
1213use SimpleSAML \SAML2 \Type \SAMLStringValue ;
@@ -86,22 +87,4 @@ public function testMarshallingWithoutOptionalArguments(): void
8687 $ this ->assertNull ($ ra ->getFriendlyName ());
8788 $ this ->assertEquals ([], $ ra ->getAttributeValues ());
8889 }
89-
90-
91- // test unmarshalling
92-
93-
94- /**
95- * Test that creating a RequestedAttribute object from XML fails when isRequired is not boolean.
96- */
97- public function testUnmarshallingWithWrongIsRequired (): void
98- {
99- $ xmlRepresentation = clone self ::$ xmlRepresentation ;
100- $ xmlRepresentation ->documentElement ->setAttribute ('isRequired ' , 'wrong ' );
101-
102- $ this ->expectException (AssertionFailedException::class);
103- $ this ->expectExceptionMessage ('The \'isRequired \' attribute of md:RequestedAttribute must be a boolean. ' );
104-
105- RequestedAttribute::fromXML ($ xmlRepresentation ->documentElement );
106- }
10790}
You can’t perform that action at this time.
0 commit comments