File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3838 "require" : {
3939 "php" : " ^8.2" ,
4040 "composer-runtime-api" : " ^2.2" ,
41- "orchestra/sidekick" : " ~1.1.20 |~1.2.17 " ,
41+ "orchestra/sidekick" : " ~1.1.21 |~1.2.18 " ,
4242 "symfony/deprecation-contracts" : " ^2.5|^3.0" ,
4343 "symfony/polyfill-php83" : " ^1.32"
4444 },
Original file line number Diff line number Diff line change 1111use PHPUnit \Framework \Attributes \Test ;
1212use PHPUnit \Framework \Attributes \TestWith ;
1313
14+ use function Orchestra \Sidekick \package_version_compare ;
15+
1416#[WithConfig('app.key ' , 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF ' )]
1517class DiscoversTest extends TestCase
1618{
@@ -38,10 +40,14 @@ public function it_can_resolve_web_routes_from_discovers()
3840 #[Test]
3941 public function it_can_resolve_web_routes_using_macro_from_discovers ()
4042 {
43+ $ contentType = package_version_compare ('symfony/http-foundation ' , '7.4.0 ' , '>= ' )
44+ ? 'text/plain; charset=utf-8 '
45+ : 'text/plain; charset=UTF-8 ' ;
46+
4147 $ this ->get ('/hello-world ' )
4248 ->assertOk ()
4349 ->assertSee ('Hello world ' )
44- ->assertHeader ('Content-Type ' , ' text/plain; charset=UTF-8 ' );
50+ ->assertHeader ('Content-Type ' , $ contentType );
4551 }
4652
4753 #[Test]
You can’t perform that action at this time.
0 commit comments