@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | $endpointResolverMock->expects($this->once()) |
27 | 27 | ->method('resolve') |
28 | - ->willReturnCallback(function (CriteriaSet $criteriaSet, array $endpoints) { |
|
28 | + ->willReturnCallback(function(CriteriaSet $criteriaSet, array $endpoints) { |
|
29 | 29 | $this->assertTrue($criteriaSet->has(ServiceTypeCriteria::class)); |
30 | 30 | $arr = $criteriaSet->get(ServiceTypeCriteria::class); |
31 | 31 | $this->assertCount(1, $arr); |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use LightSaml\Model\Protocol\AuthnRequest; |
11 | 11 | use LightSaml\Profile\Profiles; |
12 | 12 | use LightSaml\Resolver\Endpoint\Criteria\ServiceTypeCriteria; |
13 | -use LightSaml\Resolver\Endpoint\EndpointResolverInterface; |
|
14 | 13 | use LightSaml\Tests\BaseTestCase; |
15 | 14 | |
16 | 15 | class DestinationValidatorResponseActionTest extends BaseTestCase |
@@ -9,9 +9,7 @@ |
||
9 | 9 | use LightSaml\Context\Profile\RequestStateContext; |
10 | 10 | use LightSaml\Profile\Profiles; |
11 | 11 | use LightSaml\State\Request\RequestState; |
12 | -use LightSaml\Store\Request\RequestStateStoreInterface; |
|
13 | 12 | use LightSaml\Tests\BaseTestCase; |
14 | -use Psr\Log\LoggerInterface; |
|
15 | 13 | |
16 | 14 | class FlushRequestStatesActionTest extends BaseTestCase |
17 | 15 | { |
@@ -97,7 +97,7 @@ |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | - * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Validator\Model\NameId\NameIdValidatorInterface |
|
100 | + * @return NameIdValidatorInterface |
|
101 | 101 | */ |
102 | 102 | public function getNameIdValidatorMock() |
103 | 103 | { |
@@ -193,7 +193,7 @@ |
||
193 | 193 | } |
194 | 194 | |
195 | 195 | /** |
196 | - * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Store\TrustOptions\TrustOptionsStoreInterface |
|
196 | + * @return TrustOptionsStoreInterface |
|
197 | 197 | */ |
198 | 198 | private function getTrustOptionsStore() |
199 | 199 | { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * @param LoggerInterface $logger |
109 | 109 | * @param EndpointResolverInterface $endpointResolver |
110 | 110 | * |
111 | - * @return ResolveEndpointBaseAction |
|
111 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
112 | 112 | */ |
113 | 113 | protected function createAction(LoggerInterface $logger, EndpointResolverInterface $endpointResolver) |
114 | 114 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $context = $this->createContext(ProfileContext::ROLE_IDP, $message); |
42 | 42 | |
43 | 43 | $endpoint = null; |
44 | - $this->setEndpointResolver(true, function (CriteriaSet $criteriaSet, array $endpointCandidates) use (&$endpoint) { |
|
44 | + $this->setEndpointResolver(true, function(CriteriaSet $criteriaSet, array $endpointCandidates) use (&$endpoint) { |
|
45 | 45 | $this->criteriaSetShouldHaveBindingCriteria( |
46 | 46 | $criteriaSet, |
47 | 47 | [SamlConstants::BINDING_SAML2_HTTP_POST, SamlConstants::BINDING_SAML2_HTTP_REDIRECT] |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $context = $this->createContext(ProfileContext::ROLE_IDP, $message); |
68 | 68 | |
69 | 69 | $endpoint = null; |
70 | - $this->setEndpointResolver(true, function () { |
|
70 | + $this->setEndpointResolver(true, function() { |
|
71 | 71 | return []; |
72 | 72 | }); |
73 | 73 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $message->setAssertionConsumerServiceIndex($index = 2); |
81 | 81 | $context = $this->createContext(ProfileContext::ROLE_IDP, $message); |
82 | 82 | |
83 | - $this->setEndpointResolver(true, function (CriteriaSet $criteriaSet) use ($index) { |
|
83 | + $this->setEndpointResolver(true, function(CriteriaSet $criteriaSet) use ($index) { |
|
84 | 84 | $this->criteriaSetShouldHaveIndexCriteria($criteriaSet, $index); |
85 | 85 | |
86 | 86 | return [$this->getEndpointReferenceMock($endpoint = new SingleSignOnService())]; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $message->setAssertionConsumerServiceURL($url = 'http://domain.com/acs'); |
96 | 96 | $context = $this->createContext(ProfileContext::ROLE_IDP, $message); |
97 | 97 | |
98 | - $this->setEndpointResolver(true, function (CriteriaSet $criteriaSet) use ($url) { |
|
98 | + $this->setEndpointResolver(true, function(CriteriaSet $criteriaSet) use ($url) { |
|
99 | 99 | $this->criteriaSetShouldHaveLocationCriteria($criteriaSet, $url); |
100 | 100 | |
101 | 101 | return [$this->getEndpointReferenceMock($endpoint = new SingleSignOnService())]; |
@@ -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); |