Skip to content

Commit

Permalink
fix: fix tests, remove unused dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 30, 2023
1 parent 1de7ea1 commit 9273fb0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 19 deletions.
9 changes: 0 additions & 9 deletions spec/EcPhp/CasLib/CasSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public function it_can_authenticate_a_request(CacheItemPoolInterface $cache)
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -176,7 +175,6 @@ public function it_can_authenticate_a_request_in_proxy_mode(CacheItemPoolInterfa
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -364,7 +362,6 @@ public function it_can_detect_wrong_url(CacheItemPoolInterface $cache)
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -645,7 +642,6 @@ public function it_can_parse_json_in_a_response(CacheItemPoolInterface $cache)
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -694,7 +690,6 @@ public function it_can_request_a_proxy_ticket(CacheItemPoolInterface $cache)
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -751,7 +746,6 @@ public function it_can_validate_a_bad_proxy_ticket(CacheItemPoolInterface $cache
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -780,7 +774,6 @@ public function it_can_validate_a_bad_service_validate_request(CacheItemPoolInte
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -881,7 +874,6 @@ public function it_cannot_be_constructed_without_base_url(CacheItemPoolInterface
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -970,7 +962,6 @@ public function let(CacheItemPoolInterface $cache, CacheItemInterface $cacheItem
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down
1 change: 0 additions & 1 deletion spec/EcPhp/CasLib/Handler/ProxySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public function let(CacheItemPoolInterface $cache)
[],
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down
2 changes: 0 additions & 2 deletions spec/EcPhp/CasLib/Handler/ServiceValidateSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public function it_can_get_credentials_with_pgtUrl(CacheItemPoolInterface $cache
[],
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -144,7 +143,6 @@ public function let(CacheItemPoolInterface $cache)
[],
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down
5 changes: 0 additions & 5 deletions spec/EcPhp/CasLib/Response/CasResponseBuilderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use EcPhp\CasLib\Response\Factory\ProxyFailureFactory;
use EcPhp\CasLib\Response\Factory\ServiceValidateFactory;
use Exception;
use loophp\psr17\Psr17;
use Nyholm\Psr7\Factory\Psr17Factory;
use Nyholm\Psr7\Response;
use PhpSpec\ObjectBehavior;
Expand Down Expand Up @@ -306,12 +305,8 @@ public function it_is_initializable()

public function let()
{
$psr17Factory = new Psr17Factory();
$psr17 = new Psr17($psr17Factory, $psr17Factory, $psr17Factory, $psr17Factory, $psr17Factory, $psr17Factory);

$this
->beConstructedWith(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down
2 changes: 0 additions & 2 deletions spec/tests/EcPhp/CasLib/CasSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public function it_can_test_the_proxy_mode_with_pgtUrl()
$psr17,
$cache,
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down Expand Up @@ -77,7 +76,6 @@ public function it_can_test_the_proxy_mode_without_pgtUrl()
$psr17,
new ArrayAdapter(),
new CasResponseBuilder(
$psr17,
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
Expand Down

0 comments on commit 9273fb0

Please sign in to comment.