Skip to content

Commit

Permalink
[HttpKernel] Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyachase committed Feb 29, 2024
1 parent dc796c3 commit 5ed5a42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Expand Up @@ -20,7 +20,7 @@

class RequestValueResolverTest extends TestCase
{
public function testSameRequestReturned(): void
public function testSameRequestReturned()
{
$resolver = new RequestValueResolver();
$expectedRequest = Request::create('/');
Expand All @@ -29,15 +29,15 @@ public function testSameRequestReturned(): void
self::assertSame($expectedRequest, $actualRequest[0] ?? null);
}

public function testRequestIsNotResolvedForRandomClass(): void
public function testRequestIsNotResolvedForRandomClass()
{
$resolver = new RequestValueResolver();
$expectedRequest = Request::create('/');
$actualRequest = $resolver->resolve($expectedRequest, new ArgumentMetadata('request', self::class, false, false, null));
self::assertCount(0, $actualRequest);
}

public function testExceptionThrownForRandomRequestClass(): void
public function testExceptionThrownForRandomRequestClass()
{
$resolver = new RequestValueResolver();
$expectedRequest = Request::create('/');
Expand Down
Expand Up @@ -13,7 +13,6 @@

use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
use Symfony\Component\DependencyInjection\ServiceLocator;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Controller\ArgumentResolver\ServiceValueResolver;
Expand Down
Expand Up @@ -347,7 +347,7 @@ public function testUnknownTargetedResolver()
$resolver->getArguments($request, $controller);
}

public function testResolversChainCompletionWhenResolverThrowsSpecialException(): void
public function testResolversChainCompletionWhenResolverThrowsSpecialException()
{
$failingValueResolver = new class() implements ValueResolverInterface {
public function resolve(Request $request, ArgumentMetadata $argument): iterable
Expand All @@ -367,7 +367,7 @@ public function resolve(Request $request, ArgumentMetadata $argument): iterable
self::assertEquals([123], $actualArguments);
}

public function testExceptionList(): void
public function testExceptionList()
{
$failingValueResolverOne = new class() implements ValueResolverInterface {
public function resolve(Request $request, ArgumentMetadata $argument): iterable
Expand Down

0 comments on commit 5ed5a42

Please sign in to comment.