@@ -547,24 +547,34 @@ public function testExceptionsConfig()
547
547
{
548
548
$ container = $ this ->createContainerFromFile ('exceptions ' );
549
549
550
+ $ configuration = $ container ->getDefinition ('exception_listener ' )->getArgument (3 );
551
+
550
552
$ this ->assertSame ([
551
- \Symfony \Component \HttpKernel \Exception \BadRequestHttpException::class => [
552
- 'log_level ' => 'info ' ,
553
- 'status_code ' => 422 ,
554
- ],
555
- \Symfony \Component \HttpKernel \Exception \NotFoundHttpException::class => [
556
- 'log_level ' => 'info ' ,
557
- 'status_code ' => null ,
558
- ],
559
- \Symfony \Component \HttpKernel \Exception \ConflictHttpException::class => [
560
- 'log_level ' => 'info ' ,
561
- 'status_code ' => null ,
562
- ],
563
- \Symfony \Component \HttpKernel \Exception \ServiceUnavailableHttpException::class => [
564
- 'log_level ' => null ,
565
- 'status_code ' => 500 ,
566
- ],
567
- ], $ container ->getDefinition ('exception_listener ' )->getArgument (3 ));
553
+ \Symfony \Component \HttpKernel \Exception \BadRequestHttpException::class,
554
+ \Symfony \Component \HttpKernel \Exception \NotFoundHttpException::class,
555
+ \Symfony \Component \HttpKernel \Exception \ConflictHttpException::class,
556
+ \Symfony \Component \HttpKernel \Exception \ServiceUnavailableHttpException::class,
557
+ ], array_keys ($ configuration ));
558
+
559
+ $ this ->assertEqualsCanonicalizing ([
560
+ 'log_level ' => 'info ' ,
561
+ 'status_code ' => 422 ,
562
+ ], $ configuration [\Symfony \Component \HttpKernel \Exception \BadRequestHttpException::class]);
563
+
564
+ $ this ->assertEqualsCanonicalizing ([
565
+ 'log_level ' => 'info ' ,
566
+ 'status_code ' => null ,
567
+ ], $ configuration [\Symfony \Component \HttpKernel \Exception \NotFoundHttpException::class]);
568
+
569
+ $ this ->assertEqualsCanonicalizing ([
570
+ 'log_level ' => 'info ' ,
571
+ 'status_code ' => null ,
572
+ ], $ configuration [\Symfony \Component \HttpKernel \Exception \ConflictHttpException::class]);
573
+
574
+ $ this ->assertEqualsCanonicalizing ([
575
+ 'log_level ' => null ,
576
+ 'status_code ' => 500 ,
577
+ ], $ configuration [\Symfony \Component \HttpKernel \Exception \ServiceUnavailableHttpException::class]);
568
578
}
569
579
570
580
public function testRouter ()
0 commit comments