File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 2121use Config \DocTypes ;
2222use Config \Filters ;
2323use Config \Services ;
24+ use PHPUnit \Framework \Attributes \BackupGlobals ;
2425use PHPUnit \Framework \Attributes \Group ;
2526use PHPUnit \Framework \Attributes \PreserveGlobalState ;
2627use PHPUnit \Framework \Attributes \RunInSeparateProcess ;
2930/**
3031 * @internal
3132 */
33+ #[BackupGlobals(true )]
3234#[Group('SeparateProcess ' )]
3335final class FormHelperTest extends CIUnitTestCase
3436{
@@ -39,6 +41,8 @@ protected function setUp(): void
3941
4042 parent ::setUp ();
4143
44+ $ _POST = $ _GET = [];
45+
4246 CodeIgniterServices::injectMock ('superglobals ' , new Superglobals ());
4347
4448 helper ('form ' );
Original file line number Diff line number Diff line change 2222use Config \App ;
2323use Config \Feature ;
2424use Config \Routing ;
25+ use PHPUnit \Framework \Attributes \BackupGlobals ;
2526use PHPUnit \Framework \Attributes \DataProvider ;
2627use PHPUnit \Framework \Attributes \Group ;
2728
2829/**
2930 * @internal
3031 */
32+ #[BackupGlobals(true )]
3133#[Group('DatabaseLive ' )]
3234final class FeatureTestTraitTest extends CIUnitTestCase
3335{
You can’t perform that action at this time.
0 commit comments