File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 66
77use DOMDocument ;
88use PHPUnit \Framework \Attributes \Depends ;
9+ use SimpleSAML \XML \DOMDocumentFactory ;
910
1011use function class_exists ;
1112
@@ -54,6 +55,12 @@ public function testSchemaValidation(): void
5455 // Validate after serialization
5556 self ::$ testedClass ::schemaValidate ($ serializedClass ->ownerDocument , self ::$ schemaFile );
5657
58+ // Validate after normalization
59+ if (self ::$ testedClass ::getNormalization () === true ) {
60+ $ normalizedDoc = DOMDocumentFactory::normalizeDocument ($ serializedClass ->ownerDocument );
61+ self ::$ testedClass ::schemaValidate ($ normalizedDoc , self ::$ schemaFile );
62+ }
63+
5764 // If we got this far and no exceptions were thrown, consider this test passed!
5865 $ this ->addToAssertionCount (1 );
5966 }
You can’t perform that action at this time.
0 commit comments