Skip to content

Commit b722ee9

Browse files
committed
fix: resolve encoding negotiation pollution in NegotiateTest
1 parent 9b0afc4 commit b722ee9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/system/HTTP/NegotiateTest.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
use CodeIgniter\Test\CIUnitTestCase;
1818
use Config\App;
1919
use Config\Feature;
20+
use PHPUnit\Framework\Attributes\BackupGlobals;
2021
use PHPUnit\Framework\Attributes\Group;
2122

2223
/**
2324
* @internal
2425
*/
26+
#[BackupGlobals(true)]
2527
#[Group('Others')]
2628
final class NegotiateTest extends CIUnitTestCase
2729
{
@@ -32,6 +34,8 @@ protected function setUp(): void
3234
{
3335
parent::setUp();
3436

37+
$this->resetServices();
38+
3539
$config = new App();
3640
$this->request = new IncomingRequest($config, new SiteURI($config), null, new UserAgent());
3741
$this->negotiate = new Negotiate($this->request);

0 commit comments

Comments
 (0)