@@ -146,7 +146,7 @@ |
||
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
149 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Symfony\Component\EventDispatcher\EventDispatcherInterface |
|
149 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
150 | 150 | */ |
151 | 151 | private function getEventDispatcherMock() |
152 | 152 | { |
@@ -185,7 +185,7 @@ |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Symfony\Component\EventDispatcher\EventDispatcherInterface |
|
188 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
189 | 189 | */ |
190 | 190 | private function getEventDispatcherMock() |
191 | 191 | { |
@@ -158,6 +158,9 @@ |
||
158 | 158 | $this->assertInstanceOf(\LightSaml\Store\EntityDescriptor\EntityDescriptorStoreInterface::class, $buildContainer->getPartyContainer()->getSpEntityDescriptorStore()); |
159 | 159 | } |
160 | 160 | |
161 | + /** |
|
162 | + * @param string $inResponseTo |
|
163 | + */ |
|
161 | 164 | private function getBuildContainer($inResponseTo = null, TimeProviderInterface $timeProvider = null) |
162 | 165 | { |
163 | 166 | $buildContainer = new BuildContainer($pimple = new Container()); |
@@ -127,6 +127,9 @@ discard block |
||
127 | 127 | EntityDescriptor::load(__DIR__.'/../../../../../../resources/sample/EntitiesDescriptor/testshib-providers.xml'); |
128 | 128 | } |
129 | 129 | |
130 | + /** |
|
131 | + * @param string $certificate |
|
132 | + */ |
|
130 | 133 | private function checkKD(SSODescriptor $descriptor, $use, $certificate) |
131 | 134 | { |
132 | 135 | $arrKD = $descriptor->getAllKeyDescriptorsByUse($use); |
@@ -138,6 +141,9 @@ discard block |
||
138 | 141 | $this->assertEquals($certificate, $kd->getCertificate()->getData()); |
139 | 142 | } |
140 | 143 | |
144 | + /** |
|
145 | + * @param string $location |
|
146 | + */ |
|
141 | 147 | private function checkSLO(SSODescriptor $descriptor, $binding, $location) |
142 | 148 | { |
143 | 149 | $arr = $descriptor->getAllSingleLogoutServicesByBinding($binding); |
@@ -148,6 +154,11 @@ discard block |
||
148 | 154 | $this->assertEquals($location, $svc->getLocation()); |
149 | 155 | } |
150 | 156 | |
157 | + /** |
|
158 | + * @param string $location |
|
159 | + * @param string $index |
|
160 | + * @param boolean $isDefault |
|
161 | + */ |
|
151 | 162 | private function checkACS(SpSsoDescriptor $sp, $binding, $location, $index, $isDefault) |
152 | 163 | { |
153 | 164 | $arr = $sp->getAllAssertionConsumerServicesByBinding($binding); |
@@ -160,6 +171,9 @@ discard block |
||
160 | 171 | $this->assertEquals($isDefault, $svc->getIsDefaultBool()); |
161 | 172 | } |
162 | 173 | |
174 | + /** |
|
175 | + * @param string $location |
|
176 | + */ |
|
163 | 177 | private function checkSSO(IdpSsoDescriptor $idp, $binding, $location) |
164 | 178 | { |
165 | 179 | $arr = $idp->getAllSingleSignOnServicesByBinding($binding); |
@@ -7,6 +7,11 @@ |
||
7 | 7 | |
8 | 8 | class ContactPersonChecker |
9 | 9 | { |
10 | + /** |
|
11 | + * @param string $givenName |
|
12 | + * @param string $surName |
|
13 | + * @param string $email |
|
14 | + */ |
|
10 | 15 | public static function check( |
11 | 16 | BaseTestCase $test, |
12 | 17 | $type, |
@@ -7,6 +7,11 @@ |
||
7 | 7 | |
8 | 8 | class IndexedEndpointChecker |
9 | 9 | { |
10 | + /** |
|
11 | + * @param string $location |
|
12 | + * @param integer $index |
|
13 | + * @param boolean $isDefault |
|
14 | + */ |
|
10 | 15 | public static function check(BaseTestCase $test, $binding, $location, $index, $isDefault, IndexedEndpoint $svc = null) |
11 | 16 | { |
12 | 17 | EndpointChecker::check($test, $binding, $location, $svc); |
@@ -7,6 +7,9 @@ |
||
7 | 7 | |
8 | 8 | class KeyDescriptorChecker |
9 | 9 | { |
10 | + /** |
|
11 | + * @param string $cn |
|
12 | + */ |
|
10 | 13 | public static function checkCertificateCN(BaseTestCase $test, $use, $cn, KeyDescriptor $kd = null) |
11 | 14 | { |
12 | 15 | $test->assertNotNull($kd); |
@@ -7,6 +7,11 @@ |
||
7 | 7 | |
8 | 8 | class OrganizationChecker |
9 | 9 | { |
10 | + /** |
|
11 | + * @param string $name |
|
12 | + * @param string $display |
|
13 | + * @param string $url |
|
14 | + */ |
|
10 | 15 | public static function check(BaseTestCase $test, $name, $display, $url, Organization $organization = null) |
11 | 16 | { |
12 | 17 | $test->assertNotNull($organization); |
@@ -244,8 +244,8 @@ |
||
244 | 244 | } |
245 | 245 | |
246 | 246 | /** |
247 | - * @param array $arrIdp |
|
248 | - * @param array $arrSp |
|
247 | + * @param string[] $arrIdp |
|
248 | + * @param string[] $arrSp |
|
249 | 249 | * |
250 | 250 | * @return SsoState |
251 | 251 | */ |