Skip to content

Commit 13015db

Browse files
committed
run composer cs-fix
1 parent 737846e commit 13015db

28 files changed

Lines changed: 97 additions & 97 deletions

tests/system/Autoloader/AutoloaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ public function testAutoloaderLoadsNonClassFiles(): void
392392
$loader->unregister();
393393
}
394394

395-
#[RunInSeparateProcess]
396395
#[PreserveGlobalState(false)]
396+
#[RunInSeparateProcess]
397397
public function testLoadHelpers(): void
398398
{
399399
// Workaround for errors on PHPUnit 10 and PHP 8.3.

tests/system/CodeIgniterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
/**
4141
* @internal
4242
*/
43-
#[RunTestsInSeparateProcesses]
4443
#[BackupGlobals(true)]
4544
#[Group('Others')]
45+
#[RunTestsInSeparateProcesses]
4646
final class CodeIgniterTest extends CIUnitTestCase
4747
{
4848
private CodeIgniter $codeigniter;

tests/system/Commands/GenerateKeyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public function testGenerateKeyShowsEncodedKey(): void
8888
$this->assertStringContainsString('hex2bin:', $this->getBuffer());
8989
}
9090

91-
#[RunInSeparateProcess]
9291
#[PreserveGlobalState(false)]
92+
#[RunInSeparateProcess]
9393
public function testGenerateKeyCreatesNewKey(): void
9494
{
9595
command('key:generate');

tests/system/CommonFunctionsSendTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ protected function setUp(): void
3939
* Make sure cookies are set by RedirectResponse this way
4040
* See https://github.com/codeigniter4/CodeIgniter4/issues/1393
4141
*/
42-
#[RunInSeparateProcess]
4342
#[PreserveGlobalState(false)]
43+
#[RunInSeparateProcess]
4444
public function testRedirectResponseCookiesSent(): void
4545
{
4646
$loginTime = time();

tests/system/CommonFunctionsTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ public function testEscapeRecursiveArrayRaw(): void
272272
$this->assertSame($data, esc($data, 'raw'));
273273
}
274274

275-
#[RunInSeparateProcess]
276275
#[PreserveGlobalState(false)]
276+
#[RunInSeparateProcess]
277277
public function testSessionInstance(): void
278278
{
279279
// Workaround for errors on PHPUnit 10 and PHP 8.3.
@@ -285,8 +285,8 @@ public function testSessionInstance(): void
285285
$this->assertInstanceOf(Session::class, session());
286286
}
287287

288-
#[RunInSeparateProcess]
289288
#[PreserveGlobalState(false)]
289+
#[RunInSeparateProcess]
290290
public function testSessionVariable(): void
291291
{
292292
// Workaround for errors on PHPUnit 10 and PHP 8.3.
@@ -300,8 +300,8 @@ public function testSessionVariable(): void
300300
$this->assertSame('Hi there', session('notbogus'));
301301
}
302302

303-
#[RunInSeparateProcess]
304303
#[PreserveGlobalState(false)]
304+
#[RunInSeparateProcess]
305305
public function testSessionVariableNotThere(): void
306306
{
307307
// Workaround for errors on PHPUnit 10 and PHP 8.3.
@@ -426,8 +426,8 @@ public function testModelExistsAbsoluteClassname(): void
426426
$this->assertInstanceOf(JobModel::class, model(JobModel::class));
427427
}
428428

429-
#[RunInSeparateProcess]
430429
#[PreserveGlobalState(false)]
430+
#[RunInSeparateProcess]
431431
public function testOldInput(): void
432432
{
433433
// Workaround for errors on PHPUnit 10 and PHP 8.3.
@@ -463,8 +463,8 @@ public function testOldInput(): void
463463
$this->assertSame('fritz', old('zibble'));
464464
}
465465

466-
#[RunInSeparateProcess]
467466
#[PreserveGlobalState(false)]
467+
#[RunInSeparateProcess]
468468
public function testOldInputSerializeData(): void
469469
{
470470
// Workaround for errors on PHPUnit 10 and PHP 8.3.
@@ -501,8 +501,8 @@ public function testOldInputSerializeData(): void
501501
/**
502502
* @see https://github.com/codeigniter4/CodeIgniter4/issues/1492
503503
*/
504-
#[RunInSeparateProcess]
505504
#[PreserveGlobalState(false)]
505+
#[RunInSeparateProcess]
506506
public function testOldInputArray(): void
507507
{
508508
// Workaround for errors on PHPUnit 10 and PHP 8.3.
@@ -620,8 +620,8 @@ public function testRedirectResponseCookies1(): void
620620
$this->assertTrue($answer1->hasCookie('login_time'));
621621
}
622622

623-
#[RunInSeparateProcess]
624623
#[PreserveGlobalState(false)]
624+
#[RunInSeparateProcess]
625625
public function testTrace(): void
626626
{
627627
// Workaround for errors on PHPUnit 10 and PHP 8.3.
@@ -645,8 +645,8 @@ public function testViewNotSaveData(): void
645645
$this->assertStringContainsString('<h1>is_not</h1>', view('\Tests\Support\View\Views\simples'));
646646
}
647647

648-
#[RunInSeparateProcess]
649648
#[PreserveGlobalState(false)]
649+
#[RunInSeparateProcess]
650650
public function testForceHttpsNullRequestAndResponse(): void
651651
{
652652
// Workaround for errors on PHPUnit 10 and PHP 8.3.
@@ -761,8 +761,8 @@ public function testDWithCSP(): void
761761
Kint::$cli_detection = $cliDetection;
762762
}
763763

764-
#[RunInSeparateProcess]
765764
#[PreserveGlobalState(false)]
765+
#[RunInSeparateProcess]
766766
public function testTraceWithCSP(): void
767767
{
768768
// Workaround for errors on PHPUnit 10 and PHP 8.3.

tests/system/CommonHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
/**
2626
* @internal
2727
*/
28-
#[Group('Others')]
2928
#[CoversFunction('helper')]
29+
#[Group('Others')]
3030
final class CommonHelperTest extends CIUnitTestCase
3131
{
3232
private array $dummyHelpers = [

tests/system/Config/BaseConfigTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ public function testUseDefaultValueTypeStringValue(): void
101101
$this->assertSame('123456', $config->password);
102102
}
103103

104-
#[RunInSeparateProcess]
105104
#[PreserveGlobalState(false)]
105+
#[RunInSeparateProcess]
106106
public function testServerValues(): void
107107
{
108108
$_SERVER = [
@@ -195,8 +195,8 @@ public function testSetsDefaultValues(): void
195195
$this->assertSame('bar', $config->second);
196196
}
197197

198-
#[RunInSeparateProcess]
199198
#[PreserveGlobalState(false)]
199+
#[RunInSeparateProcess]
200200
public function testSetsDefaultValuesEncryptionUsingHex2Bin(): void
201201
{
202202
$dotenv = new DotEnv($this->fixturesFolder, 'encryption.env');
@@ -208,8 +208,8 @@ public function testSetsDefaultValuesEncryptionUsingHex2Bin(): void
208208
$this->assertSame('OpenSSL', $config->driver);
209209
}
210210

211-
#[RunInSeparateProcess]
212211
#[PreserveGlobalState(false)]
212+
#[RunInSeparateProcess]
213213
public function testSetDefaultValuesEncryptionUsingBase64(): void
214214
{
215215
$dotenv = new DotEnv($this->fixturesFolder, 'base64encryption.env');

tests/system/Config/DotEnvTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public static function provideLoadsVars(): iterable
8989
];
9090
}
9191

92-
#[RunInSeparateProcess]
9392
#[PreserveGlobalState(false)]
93+
#[RunInSeparateProcess]
9494
public function testLoadsHex2Bin(): void
9595
{
9696
$dotenv = new DotEnv($this->fixturesFolder, 'encryption.env');
@@ -101,8 +101,8 @@ public function testLoadsHex2Bin(): void
101101
$this->assertSame('OpenSSL', getenv('encryption.driver'));
102102
}
103103

104-
#[RunInSeparateProcess]
105104
#[PreserveGlobalState(false)]
105+
#[RunInSeparateProcess]
106106
public function testLoadsBase64(): void
107107
{
108108
$dotenv = new DotEnv($this->fixturesFolder, 'base64encryption.env');

tests/system/Config/ServicesTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,24 +243,24 @@ public function testNewViewcell(): void
243243
$this->assertInstanceOf(Cell::class, $actual);
244244
}
245245

246-
#[RunInSeparateProcess]
247246
#[PreserveGlobalState(false)]
247+
#[RunInSeparateProcess]
248248
public function testNewSession(): void
249249
{
250250
$actual = Services::session();
251251
$this->assertInstanceOf(Session::class, $actual);
252252
}
253253

254-
#[RunInSeparateProcess]
255254
#[PreserveGlobalState(false)]
255+
#[RunInSeparateProcess]
256256
public function testNewSessionWithNullConfig(): void
257257
{
258258
$actual = Services::session(null, false);
259259
$this->assertInstanceOf(Session::class, $actual);
260260
}
261261

262-
#[RunInSeparateProcess]
263262
#[PreserveGlobalState(false)]
263+
#[RunInSeparateProcess]
264264
public function testCallStatic(): void
265265
{
266266
// __callStatic should kick in for this but fail
@@ -271,17 +271,17 @@ public function testCallStatic(): void
271271
$this->assertInstanceOf(Session::class, $actual);
272272
}
273273

274-
#[RunInSeparateProcess]
275274
#[PreserveGlobalState(false)]
275+
#[RunInSeparateProcess]
276276
public function testCallStaticDirectly(): void
277277
{
278278
// $actual = \CodeIgniter\Config\Services::SeSsIoN(null, false); // original
279279
$actual = Services::__callStatic('SeSsIoN', [null, false]);
280280
$this->assertInstanceOf(Session::class, $actual);
281281
}
282282

283-
#[RunInSeparateProcess]
284283
#[PreserveGlobalState(false)]
284+
#[RunInSeparateProcess]
285285
public function testMockInjection(): void
286286
{
287287
Services::injectMock('response', new MockResponse(new App()));
@@ -300,8 +300,8 @@ public function testMockInjection(): void
300300
$this->assertSame($response, $response3);
301301
}
302302

303-
#[RunInSeparateProcess]
304303
#[PreserveGlobalState(false)]
304+
#[RunInSeparateProcess]
305305
public function testReset(): void
306306
{
307307
Services::injectMock('response', new MockResponse(new App()));
@@ -317,8 +317,8 @@ public function testReset(): void
317317
$this->assertNotSame($response2, $response);
318318
}
319319

320-
#[RunInSeparateProcess]
321320
#[PreserveGlobalState(false)]
321+
#[RunInSeparateProcess]
322322
public function testResetSingle(): void
323323
{
324324
Services::injectMock('response', new MockResponse(new App()));

tests/system/DebugTraceableTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
/**
2323
* @internal
2424
*/
25-
#[Group('Others')]
2625
#[CoversClass(DebugTraceableTrait::class)]
26+
#[Group('Others')]
2727
final class DebugTraceableTraitTest extends CIUnitTestCase
2828
{
2929
public function testFactoryInstanceReturnsWhereItIsRaised(): void

0 commit comments

Comments
 (0)