Skip to content

Commit ec1bb65

Browse files
committed
Run cs-fix
1 parent cb97e1e commit ec1bb65

46 files changed

Lines changed: 228 additions & 228 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/system/AutoReview/FrameworkCodeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class FrameworkCodeTest extends TestCase
3939
];
4040

4141
/**
42-
* @dataProvider provideTestClassCases
42+
* @dataProvider provideEachTestClassHasCorrectGroupAnnotation
4343
*
4444
* @phpstan-param class-string $class
4545
*/
@@ -73,7 +73,7 @@ public function testEachTestClassHasCorrectGroupAnnotation(string $class): void
7373
));
7474
}
7575

76-
public function provideTestClassCases(): iterable
76+
public function provideEachTestClassHasCorrectGroupAnnotation(): iterable
7777
{
7878
foreach ($this->getTestClasses() as $class) {
7979
yield $class => [$class];

tests/system/CLI/CLITest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public function testWindow(): void
450450
}
451451

452452
/**
453-
* @dataProvider tableProvider
453+
* @dataProvider provideTable
454454
*
455455
* @param array $tbody
456456
* @param array $thead
@@ -463,7 +463,7 @@ public function testTable($tbody, $thead, $expected): void
463463
$this->assertSame($this->getStreamFilterBuffer(), $expected);
464464
}
465465

466-
public function tableProvider(): iterable
466+
public function provideTable(): iterable
467467
{
468468
$head = [
469469
'ID',

tests/system/Cache/Handlers/BaseHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
final class BaseHandlerTest extends CIUnitTestCase
2424
{
2525
/**
26-
* @dataProvider invalidTypeProvider
26+
* @dataProvider provideValidateKeyInvalidType
2727
*
2828
* @param mixed $input
2929
*/
@@ -35,7 +35,7 @@ public function testValidateKeyInvalidType($input): void
3535
BaseHandler::validateKey($input);
3636
}
3737

38-
public function invalidTypeProvider(): iterable
38+
public function provideValidateKeyInvalidType(): iterable
3939
{
4040
return [
4141
[true],

tests/system/Cache/Handlers/FileHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function testIsSupported(): void
273273
}
274274

275275
/**
276-
* @dataProvider modeProvider
276+
* @dataProvider provideSaveMode
277277
*
278278
* permissions given on Windows are fixed to `0666`
279279
*
@@ -296,7 +296,7 @@ public function testSaveMode(int $int, string $string): void
296296
$this->assertSame($string, $mode);
297297
}
298298

299-
public function modeProvider(): iterable
299+
public function provideSaveMode(): iterable
300300
{
301301
return [
302302
[

tests/system/CodeIgniterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ public function testPageCacheSendSecureHeaders(): void
731731
/**
732732
* @param array|bool $cacheQueryStringValue
733733
*
734-
* @dataProvider cacheQueryStringProvider
734+
* @dataProvider providePageCacheWithCacheQueryString
735735
*
736736
* @see https://github.com/codeigniter4/CodeIgniter4/pull/6410
737737
*/
@@ -789,7 +789,7 @@ public function testPageCacheWithCacheQueryString($cacheQueryStringValue, int $e
789789
CITestStreamFilter::removeErrorFilter();
790790
}
791791

792-
public function cacheQueryStringProvider(): iterable
792+
public function providePageCacheWithCacheQueryString(): iterable
793793
{
794794
$testingUrls = [
795795
'test', // URL #1

tests/system/Commands/CommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testInexistentCommandsButWithManyAlternatives(): void
128128
}
129129

130130
/**
131-
* @dataProvider commandArgsProvider
131+
* @dataProvider provideCommandParsesArgsCorrectly
132132
*/
133133
public function testCommandParsesArgsCorrectly(string $input, array $expected): void
134134
{
@@ -138,7 +138,7 @@ public function testCommandParsesArgsCorrectly(string $input, array $expected):
138138
$this->assertSame($expected, ParamsReveal::$args);
139139
}
140140

141-
public function commandArgsProvider(): iterable
141+
public function provideCommandParsesArgsCorrectly(): iterable
142142
{
143143
return [
144144
[

tests/system/Commands/Utilities/Routes/SampleURIGeneratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
final class SampleURIGeneratorTest extends CIUnitTestCase
2323
{
2424
/**
25-
* @dataProvider routeKeyProvider
25+
* @dataProvider provideGet
2626
*/
2727
public function testGet(string $routeKey, string $expected): void
2828
{
@@ -33,7 +33,7 @@ public function testGet(string $routeKey, string $expected): void
3333
$this->assertSame($expected, $uri);
3434
}
3535

36-
public function routeKeyProvider(): iterable
36+
public function provideGet(): iterable
3737
{
3838
yield from [
3939
'root' => ['/', '/'],

tests/system/CommonFunctionsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ public function testForceHttpsNullRequestAndResponse(): void
594594
}
595595

596596
/**
597-
* @dataProvider dirtyPathsProvider
597+
* @dataProvider provideCleanPathActuallyCleaningThePaths
598598
*
599599
* @param mixed $input
600600
* @param mixed $expected
@@ -604,7 +604,7 @@ public function testCleanPathActuallyCleaningThePaths($input, $expected): void
604604
$this->assertSame($expected, clean_path($input));
605605
}
606606

607-
public function dirtyPathsProvider(): iterable
607+
public function provideCleanPathActuallyCleaningThePaths(): iterable
608608
{
609609
$ds = DIRECTORY_SEPARATOR;
610610

tests/system/Config/DotEnvTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testReturnsFalseIfCannotFindFile(): void
5656
}
5757

5858
/**
59-
* @dataProvider provideLoadVars
59+
* @dataProvider provideLoadsVars
6060
*/
6161
public function testLoadsVars(string $expected, string $varname): void
6262
{
@@ -66,7 +66,7 @@ public function testLoadsVars(string $expected, string $varname): void
6666
$this->assertSame($expected, getenv($varname));
6767
}
6868

69-
public function provideLoadVars(): iterable
69+
public function provideLoadsVars(): iterable
7070
{
7171
yield from [
7272
['bar', 'FOO'],

tests/system/Config/MimesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
final class MimesTest extends CIUnitTestCase
2323
{
24-
public function extensionsList(): iterable
24+
public function provideGuessExtensionFromType(): iterable
2525
{
2626
return [
2727
'null' => [
@@ -48,14 +48,14 @@ public function extensionsList(): iterable
4848
}
4949

5050
/**
51-
* @dataProvider extensionsList
51+
* @dataProvider provideGuessExtensionFromType
5252
*/
5353
public function testGuessExtensionFromType(?string $expected, string $mime): void
5454
{
5555
$this->assertSame($expected, Mimes::guessExtensionFromType($mime));
5656
}
5757

58-
public function mimesList(): iterable
58+
public function provideGuessTypeFromExtension(): iterable
5959
{
6060
return [
6161
'null' => [
@@ -82,7 +82,7 @@ public function mimesList(): iterable
8282
}
8383

8484
/**
85-
* @dataProvider mimesList
85+
* @dataProvider provideGuessTypeFromExtension
8686
*/
8787
public function testGuessTypeFromExtension(?string $expected, string $ext): void
8888
{

0 commit comments

Comments
 (0)