@@ 79-87 (lines=9) @@ | ||
76 | * @param array $configuration |
|
77 | * @param string $propertyPath |
|
78 | */ |
|
79 | private function validateLoaDefinition($configuration, $propertyPath) |
|
80 | { |
|
81 | $value = $configuration['loa']; |
|
82 | $path = $propertyPath . '.loa'; |
|
83 | ||
84 | Assertion::isArray($value, 'must be an object', $path); |
|
85 | Assertion::keyExists($value, '__default__', "must have the default loa set on the '__default__' property", $path); |
|
86 | Assertion::allString($value, 'all properties must contain strings as values', $path); |
|
87 | } |
|
88 | } |
|
89 |
@@ 132-147 (lines=16) @@ | ||
129 | * @param array $configuration |
|
130 | * @param string $propertyPath |
|
131 | */ |
|
132 | private function validateLoaDefinition($configuration, $propertyPath) |
|
133 | { |
|
134 | $value = $configuration['loa']; |
|
135 | $path = $propertyPath . '.loa'; |
|
136 | ||
137 | Assertion::isArray($value, 'must be an object', $path); |
|
138 | Assertion::keyExists($value, '__default__', "must have the default loa set on the '__default__' property", $path); |
|
139 | Assertion::allString($value, 'all properties must contain strings as values', $path); |
|
140 | ||
141 | // Test if all SP specific LoA configuration entries are lower case. |
|
142 | $this->assertValidInstitutionIdentifiers( |
|
143 | $value, |
|
144 | 'The shacHomeOrganisation names in SP LoA configuration must all be lower case', |
|
145 | $path |
|
146 | ); |
|
147 | } |
|
148 | ||
149 | /** |
|
150 | * @param array $configuration |