@@ -69,7 +69,7 @@ |
||
69 | 69 | * @param \Symfony\Component\HttpFoundation\Request $request |
70 | 70 | * @throws \RuntimeException if no signing provider set |
71 | 71 | * @throws \InvalidArgumentException if cannot manage the Request |
72 | - * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo |
|
72 | + * @return Response |
|
73 | 73 | */ |
74 | 74 | function manage(Request $request) |
75 | 75 | { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | * @param \Symfony\Component\HttpFoundation\Request $request |
71 | 71 | * @throws \RuntimeException |
72 | 72 | * @throws \InvalidArgumentException if cannot manage the Request |
73 | - * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo|null |
|
73 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
74 | 74 | */ |
75 | 75 | public function manage(Request $request) |
76 | 76 | { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | |
301 | 301 | |
302 | 302 | /** |
303 | - * @param $enabled |
|
303 | + * @param boolean $enabled |
|
304 | 304 | * @param $certificate |
305 | 305 | * @param $key |
306 | 306 | * @return SPSigningProviderInterface|\PHPUnit_Framework_MockObject_MockObject |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | } |
329 | 329 | |
330 | 330 | /** |
331 | - * @param $generateUriReturn |
|
331 | + * @param string $generateUriReturn |
|
332 | 332 | * @return \PHPUnit_Framework_MockObject_MockObject|\Symfony\Component\Security\Http\HttpUtils |
333 | 333 | */ |
334 | 334 | protected function createHttpUtilsStub($generateUriReturn) |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | |
351 | 351 | |
352 | 352 | /** |
353 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Symfony\Component\HttpFoundation\Request |
|
353 | + * @return \Symfony\Component\HttpFoundation\Request |
|
354 | 354 | */ |
355 | 355 | private function createRequestMock() |
356 | 356 | { |
@@ -233,7 +233,7 @@ |
||
233 | 233 | } |
234 | 234 | |
235 | 235 | /** |
236 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Symfony\Component\HttpFoundation\Request |
|
236 | + * @return \Symfony\Component\HttpFoundation\Request |
|
237 | 237 | */ |
238 | 238 | public function createRequestMock() |
239 | 239 | { |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | * @param bool $hasPreviousSession |
256 | 256 | * @param mixed $duplicateReturn |
257 | 257 | * @param mixed $getSessionReturn |
258 | - * @return \PHPUnit_Framework_MockObject_MockObject|Request |
|
258 | + * @return Request|null |
|
259 | 259 | */ |
260 | 260 | private function createRequestStub($hasSessionReturn = null, $hasPreviousSession = null, $duplicateReturn = null, $getSessionReturn = null) |
261 | 261 | { |
@@ -293,6 +293,9 @@ discard block |
||
293 | 293 | return $this->getMock('AerialShip\SamlSPBundle\RelyingParty\RelyingPartyInterface'); |
294 | 294 | } |
295 | 295 | |
296 | + /** |
|
297 | + * @param boolean $supportsReturn |
|
298 | + */ |
|
296 | 299 | private function createRelyingPartyStub($supportsReturn = null, $manageReturn = null) |
297 | 300 | { |
298 | 301 | $relyingPartyMock = $this->createRelyingPartyMock(); |
@@ -321,7 +324,7 @@ discard block |
||
321 | 324 | |
322 | 325 | /** |
323 | 326 | * @param Request|null $request |
324 | - * @return \PHPUnit_Framework_MockObject_MockObject|GetResponseEvent |
|
327 | + * @return GetResponseEvent |
|
325 | 328 | */ |
326 | 329 | private function createGetResponseEventStub($request = null) |
327 | 330 | { |
@@ -346,7 +349,7 @@ discard block |
||
346 | 349 | } |
347 | 350 | |
348 | 351 | /** |
349 | - * @return \PHPUnit_Framework_MockObject_MockObject|SecurityContextInterface |
|
352 | + * @return \Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface |
|
350 | 353 | */ |
351 | 354 | private function createSecurityContextMock() |
352 | 355 | { |
@@ -362,7 +365,7 @@ discard block |
||
362 | 365 | } |
363 | 366 | |
364 | 367 | /** |
365 | - * @return \PHPUnit_Framework_MockObject_MockObject|SessionAuthenticationStrategyInterface |
|
368 | + * @return SessionAuthenticationStrategyInterface |
|
366 | 369 | */ |
367 | 370 | private function createSessionAuthenticationStrategyMock() |
368 | 371 | { |
@@ -378,8 +381,8 @@ discard block |
||
378 | 381 | } |
379 | 382 | |
380 | 383 | /** |
381 | - * @param null $checkRequestPathResult |
|
382 | - * @param null $createRedirectResponseReturn |
|
384 | + * @param boolean $checkRequestPathResult |
|
385 | + * @param RedirectResponse $createRedirectResponseReturn |
|
383 | 386 | * @return \PHPUnit_Framework_MockObject_MockObject|HttpUtils |
384 | 387 | */ |
385 | 388 | private function createHttpUtilsStub($checkRequestPathResult = null, $createRedirectResponseReturn = null) |
@@ -402,7 +405,7 @@ discard block |
||
402 | 405 | |
403 | 406 | |
404 | 407 | /** |
405 | - * @return \PHPUnit_Framework_MockObject_MockObject|AuthenticationSuccessHandlerInterface |
|
408 | + * @return AuthenticationSuccessHandlerInterface |
|
406 | 409 | */ |
407 | 410 | private function createAuthenticationSuccessHandlerMock() |
408 | 411 | { |
@@ -410,7 +413,7 @@ discard block |
||
410 | 413 | } |
411 | 414 | |
412 | 415 | /** |
413 | - * @return \PHPUnit_Framework_MockObject_MockObject|AuthenticationSuccessHandlerInterface |
|
416 | + * @return AuthenticationSuccessHandlerInterface |
|
414 | 417 | */ |
415 | 418 | protected function createAuthenticationSuccessHandlerStub() |
416 | 419 | { |
@@ -426,7 +429,7 @@ discard block |
||
426 | 429 | } |
427 | 430 | |
428 | 431 | /** |
429 | - * @return \PHPUnit_Framework_MockObject_MockObject|AuthenticationFailureHandlerInterface |
|
432 | + * @return AuthenticationFailureHandlerInterface |
|
430 | 433 | */ |
431 | 434 | private function createAuthenticationFailureHandlerMock() |
432 | 435 | { |