@@ -89,7 +89,7 @@ |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | - * @return \PHPUnit_Framework_MockObject_MockObject|SamlMessage |
|
92 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
93 | 93 | */ |
94 | 94 | private function getMessageMock() |
95 | 95 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Credential\AbstractCredential |
|
55 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
56 | 56 | */ |
57 | 57 | private function getAbstractCredentialMock() |
58 | 58 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
44 | - * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Credential\Context\MetadataCredentialContext |
|
44 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
45 | 45 | */ |
46 | 46 | private function getMetadataContextMock() |
47 | 47 | { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Model\Metadata\KeyDescriptor |
|
24 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
25 | 25 | */ |
26 | 26 | private function getKeyDescriptorMock() |
27 | 27 | { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Model\Metadata\RoleDescriptor |
|
32 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
33 | 33 | */ |
34 | 34 | private function getRoleDescriptorMock() |
35 | 35 | { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Model\Metadata\EntityDescriptor |
|
40 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
41 | 41 | */ |
42 | 42 | private function getEntityDescriptorMock() |
43 | 43 | { |
@@ -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, |