Completed
Push — master ( 3ba758...b5e37b )
by Liaw
02:27
created
Action/Profile/Inbound/Message/DestinationValidatorResponseActionTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
tests/LightSaml/Tests/Action/Profile/FlushRequestStatesActionTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,7 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Tests/Action/Profile/Inbound/Message/IssuerValidatorActionTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Tests/Action/Profile/Inbound/Message/ResolvePartyEntityIdActionTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Tests/Action/Profile/Outbound/Message/ResolveEndpointBaseActionTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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())];
Please login to merge, or discard this patch.
tests/LightSaml/Tests/Helper/ContactPersonChecker.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -7,6 +7,11 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
tests/LightSaml/Tests/Helper/IndexedEndpointChecker.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -7,6 +7,11 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/LightSaml/Tests/Helper/KeyDescriptorChecker.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/LightSaml/Tests/Helper/OrganizationChecker.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -7,6 +7,11 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.