| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | protected function validateContent(string $content): void |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * 1.2.1 String and URI Values |
||
| 32 | * |
||
| 33 | * All SAML string and URI reference values have the types xsd:string and xsd:anyURI respectively, which |
||
| 34 | * are built in to the W3C XML Schema Datatypes specification [Schema2]. All strings in SAML messages |
||
| 35 | * MUST consist of at least one non-whitespace character (whitespace is defined in the XML |
||
| 36 | * Recommendation [XML] §2.3). Empty and whitespace-only values are disallowed. Also, unless otherwise |
||
| 37 | * indicated in this specification, all URI reference values MUST consist of at least one non-whitespace |
||
| 38 | * character, and are strongly RECOMMENDED to be absolute [RFC 2396]. |
||
| 39 | */ |
||
| 40 | Assert::notWhitespaceOnly($content, ProtocolViolationException::class); |
||
| 41 | Assert::validURI($content, SchemaViolationException::class); |
||
| 42 | } |
||
| 44 |