Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgarlag committed Sep 28, 2022
1 parent 48349ac commit 59c451b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/EventListener/PsrResponseListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
namespace Ajgarlag\Bundle\PsrHttpMessageBundle\Tests\EventListener;

use Ajgarlag\Bundle\PsrHttpMessageBundle\EventListener\PsrResponseListener;
use Nyholm\Psr7\Response;
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
use Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\ViewEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
Expand Down
6 changes: 5 additions & 1 deletion tests/Fixtures/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@
],
]);

$sensioFrameworkExtraConfig = [
'router' => ['annotations' => false],
];
if (class_exists(Psr7ServerRequestResolver::class)) {
$container->extension('sensio_framework_extra', [
$sensioFrameworkExtraConfig = array_merge($sensioFrameworkExtraConfig, [
'psr_message' => ['enabled' => true],
]);
}
$container->extension('sensio_framework_extra', $sensioFrameworkExtraConfig);

$container->services()->set(ActionArgumentsController::class)->public();
$container->services()->set('annotation_reader', AnnotationReader::class);
Expand Down

0 comments on commit 59c451b

Please sign in to comment.