Skip to content

Commit 8cca70e

Browse files
committed
Remove unnecessary unit-test
1 parent 732d6fa commit 8cca70e

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

tests/SAML2/XML/md/RequestedAttributeTest.php

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use PHPUnit\Framework\Attributes\CoversClass;
88
use PHPUnit\Framework\Attributes\Group;
99
use PHPUnit\Framework\TestCase;
10+
use SimpleSAML\Assert\AssertionFailedException;
1011
use SimpleSAML\SAML2\Constants as C;
1112
use SimpleSAML\SAML2\Type\SAMLAnyURIValue;
1213
use 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
}

0 commit comments

Comments
 (0)