Skip to content

Commit

Permalink
Autofix minor things.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 1, 2022
1 parent d3cfd3e commit 9f4163f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"friends-of-phpspec/phpspec-code-coverage": "^6",
"infection/infection": "^0.24.0",
"infection/phpspec-adapter": "^0.1.2",
"nyholm/psr7": "^1.5",
"phpspec/phpspec": "^7",
"symfony/http-client": "^6.0",
"symfony/security-core": "^5.4",
"nyholm/psr7": "^1.5"
"symfony/http-client": "^5.4",
"symfony/security-core": "^5.4"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ public function it_can_load_a_user_from_a_response(): void
// TestBody1
$response = new Response(200, ['content-type' => 'application/xml'], $this->getTestBody1());

$psr17f = new Psr17Factory;
$psr17f = new Psr17Factory();
$psr17 = new Psr17($psr17f, $psr17f, $psr17f, $psr17f, $psr17f, $psr17f);
$responseBuilder = new CasResponseBuilder(
new AuthenticationFailureFactory,
new ProxyFactory,
new ProxyFailureFactory,
new ServiceValidateFactory(new FactoryServiceValidateFactory, $psr17)
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
new ServiceValidateFactory(new FactoryServiceValidateFactory(), $psr17)
);

$user = $this
Expand Down
21 changes: 10 additions & 11 deletions spec/EcPhp/EuLoginBundle/Security/Core/User/EuLoginUserSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use EcPhp\CasLib\Response\Factory\ProxyFactory;
use EcPhp\CasLib\Response\Factory\ProxyFailureFactory;
use EcPhp\CasLib\Response\Factory\ServiceValidateFactory as FactoryServiceValidateFactory;
use EcPhp\Ecas\Response\EcasResponseBuilder;
use EcPhp\Ecas\Response\Factory\ServiceValidateFactory;
use EcPhp\EuLoginBundle\Security\Core\User\EuLoginUser;
use loophp\psr17\Psr17;
Expand Down Expand Up @@ -51,14 +50,14 @@ public function it_can_get_groups_when_no_groups_are_available()
</cas:serviceResponse>
EOF;

$psr17f = new Psr17Factory;
$psr17f = new Psr17Factory();
$psr17 = new Psr17($psr17f, $psr17f, $psr17f, $psr17f, $psr17f, $psr17f);
$response = new Response(200, ['Content-Type' => 'application/xml'], $body);
$responseBuilder = new CasResponseBuilder(
new AuthenticationFailureFactory,
new ProxyFactory,
new ProxyFailureFactory,
new ServiceValidateFactory(new FactoryServiceValidateFactory, $psr17)
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
new ServiceValidateFactory(new FactoryServiceValidateFactory(), $psr17)
);
$data = $responseBuilder
->fromResponse($response)
Expand Down Expand Up @@ -314,14 +313,14 @@ public function let()
</cas:serviceResponse>
EOF;

$psr17f = new Psr17Factory;
$psr17f = new Psr17Factory();
$psr17 = new Psr17($psr17f, $psr17f, $psr17f, $psr17f, $psr17f, $psr17f);
$response = new Response(200, ['Content-Type' => 'application/xml'], $body);
$responseBuilder = new CasResponseBuilder(
new AuthenticationFailureFactory,
new ProxyFactory,
new ProxyFailureFactory,
new ServiceValidateFactory(new FactoryServiceValidateFactory, $psr17)
new AuthenticationFailureFactory(),
new ProxyFactory(),
new ProxyFailureFactory(),
new ServiceValidateFactory(new FactoryServiceValidateFactory(), $psr17)
);

$data = $responseBuilder
Expand Down

0 comments on commit 9f4163f

Please sign in to comment.