@@ -78,7 +78,7 @@ public function testMinimal(): void
7878 $ request = self ::$ minRequest ;
7979 $ pattern = preg_quote (
8080 'F-TICKS/ACME/1.0#RESULT=OK#AP=https://localhost/sp#RP=https://localhost/idp#CSI=CL ' ,
81- '/ '
81+ '/ ' ,
8282 );
8383 $ this ->expectOutputRegex ('/^ ' . $ pattern . '[^#]+#TS=\d+#$/ ' );
8484 $ result = self ::processFilter ($ config , $ request );
@@ -94,7 +94,7 @@ public function testAsServiceProvider(): void
9494 $ request = array_merge (self ::$ minRequest , self ::$ spRequest );
9595 $ pattern1 = preg_quote (
9696 'F-TICKS/ACME/1.0#RESULT=OK#AP=https://localhost/saml:sp:IdP#RP=https://localhost/idp#CSI=CL ' ,
97- '/ '
97+ '/ ' ,
9898 );
9999 $ pattern2 = preg_quote ('#AM=urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified#TS=1000# ' , '/ ' );
100100 $ this ->expectOutputRegex ('/^ ' . $ pattern1 . '[^#]+ ' . $ pattern2 . '$/ ' );
@@ -115,12 +115,12 @@ public function testSPwithUserId(): void
115115 ]);
116116 $ pattern1 = preg_quote (
117117 'F-TICKS/ACME/1.0#RESULT=OK#AP=https://localhost/saml:sp:IdP#RP=https://localhost/idp#CSI=CL ' ,
118- '/ '
118+ '/ ' ,
119119 );
120120 $ pattern2 = preg_quote (
121121 '#AM= ' . Constants::AC_UNSPECIFIED
122122 . '#PN=e5d066a96d5809a21264e153013c3c793e6574cb77afdfa248ad2cefab9b0451#TS=1000# ' ,
123- '/ '
123+ '/ ' ,
124124 );
125125 $ this ->expectOutputRegex ('/^ ' . $ pattern1 . '[^#]+ ' . $ pattern2 . '$/ ' );
126126 $ result = self ::processFilter ($ config , $ request );
@@ -140,12 +140,12 @@ public function testAsIdentityProvider(): void
140140 ]);
141141 $ pattern1 = preg_quote (
142142 'F-TICKS/ACME/1.0#RESULT=OK#AP=https://localhost/sp#RP=https://localhost/idp#CSI=CL ' ,
143- '/ '
143+ '/ ' ,
144144 );
145145 $ pattern2 = preg_quote (
146146 '#AM= ' . Constants::AC_PASSWORD
147147 . '#PN=d844a9a0666bb3990e88f72b8f5c20accbcfa46f7b8a7ab38593bfbbab6e9cbc#TS= ' ,
148- '/ '
148+ '/ ' ,
149149 );
150150 $ this ->expectOutputRegex ('/^ ' . $ pattern1 . '[^#]+ ' . $ pattern2 . '\d+#$/ ' );
151151 $ result = self ::processFilter ($ config , $ request );
@@ -174,11 +174,11 @@ public function testExample(): void
174174 ]);
175175 $ pattern1 = preg_quote (
176176 'F-TICKS/ACME/1.0#RESULT=OK#AP=https://localhost/sp#RP=https://localhost/idp#CSI=CL ' ,
177- '/ '
177+ '/ ' ,
178178 );
179179 $ pattern2 = preg_quote (
180180 '#AM=urn:oasis:names:tc:SAML:2.0:ac:classes:Password#TS= ' ,
181- '/ '
181+ '/ ' ,
182182 );
183183 $ this ->expectOutputRegex ('/^ ' . $ pattern1 . '[^#]+ ' . $ pattern2 . '\d+#REALM=example.com#$/ ' );
184184 $ result = self ::processFilter ($ config , $ request );
@@ -199,7 +199,7 @@ public function testFilteringArray(): void
199199 $ request = array_merge (self ::$ minRequest , self ::$ idpRequest , ['Attributes ' => ['uid ' => 'user1@example.org ' ]]);
200200 $ pattern1 = preg_quote (
201201 'F-TICKS/ACME/1.0#RESULT=OK#AP=https://localhost/sp#RP=https://localhost/idp#CSI=CL ' ,
202- '/ '
202+ '/ ' ,
203203 );
204204 $ this ->expectOutputRegex ('/^ ' . $ pattern1 . '[^#]+#TS=\d+#$/ ' );
205205 $ result = self ::processFilter ($ config , $ request );
@@ -215,11 +215,11 @@ public function testFilteringString(): void
215215 $ request = array_merge (self ::$ minRequest , self ::$ idpRequest , ['Attributes ' => ['uid ' => 'user1@example.org ' ]]);
216216 $ pattern1 = preg_quote (
217217 'F-TICKS/ACME/1.0#RESULT=OK#AP=https://localhost/sp#RP=https://localhost/idp#CSI=CL ' ,
218- '/ '
218+ '/ ' ,
219219 );
220220 $ pattern2 = preg_quote (
221221 '#PN=d844a9a0666bb3990e88f72b8f5c20accbcfa46f7b8a7ab38593bfbbab6e9cbc#TS= ' ,
222- '/ '
222+ '/ ' ,
223223 );
224224 $ this ->expectOutputRegex ('/^ ' . $ pattern1 . '[^#]+ ' . $ pattern2 . '\d+#$/ ' );
225225 $ result = self ::processFilter ($ config , $ request );
@@ -243,7 +243,7 @@ public function testRiskyLogSettings(): void
243243 Logger::setCaptureLog ();
244244 $ result = self ::processFilter (
245245 ['federation ' => 'ACME ' , 'logdest ' => 'local ' , 'logconfig ' => ['processname ' => 'phpunit ' ]],
246- self ::$ minRequest
246+ self ::$ minRequest,
247247 );
248248 $ log = Logger::getCapturedLog ();
249249 $ this ->assertCount (1 , $ log );
0 commit comments