Skip to content

Commit 0e7e31a

Browse files
committed
Manually fix other data provider names
1 parent ec1bb65 commit 0e7e31a

7 files changed

Lines changed: 26 additions & 27 deletions

File tree

tests/system/CommonSingleServiceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
final class CommonSingleServiceTest extends CIUnitTestCase
2828
{
2929
/**
30-
* @dataProvider serviceNamesProvider
30+
* @dataProvider provideServiceNames
3131
*/
3232
public function testSingleServiceWithNoParamsSupplied(string $service): void
3333
{
@@ -43,7 +43,7 @@ public function testSingleServiceWithNoParamsSupplied(string $service): void
4343
}
4444

4545
/**
46-
* @dataProvider serviceNamesProvider
46+
* @dataProvider provideServiceNames
4747
*/
4848
public function testSingleServiceWithAtLeastOneParamSupplied(string $service): void
4949
{
@@ -99,7 +99,7 @@ public function testSingleServiceWithGibberishGiven(): void
9999
$this->assertNull(single_service('timers'));
100100
}
101101

102-
public static function serviceNamesProvider(): iterable
102+
public static function provideServiceNames(): iterable
103103
{
104104
static $services = [];
105105
static $excl = [

tests/system/Helpers/ArrayHelperTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function testArrayDeepSearchReturnNullEmptyArray(): void
248248
}
249249

250250
/**
251-
* @dataProvider sortByMultipleKeysProvider
251+
* @dataProvider provideSortByMultipleKeys
252252
*/
253253
public function testArraySortByMultipleKeysWithArray(array $data, array $sortColumns, array $expected): void
254254
{
@@ -259,7 +259,7 @@ public function testArraySortByMultipleKeysWithArray(array $data, array $sortCol
259259
}
260260

261261
/**
262-
* @dataProvider sortByMultipleKeysProvider
262+
* @dataProvider provideSortByMultipleKeys
263263
*/
264264
public function testArraySortByMultipleKeysWithObjects(array $data, array $sortColumns, array $expected): void
265265
{
@@ -275,7 +275,7 @@ public function testArraySortByMultipleKeysWithObjects(array $data, array $sortC
275275
}
276276

277277
/**
278-
* @dataProvider sortByMultipleKeysProvider
278+
* @dataProvider provideSortByMultipleKeys
279279
*/
280280
public function testArraySortByMultipleKeysFailsEmptyParameter(array $data, array $sortColumns, array $expected): void
281281
{
@@ -297,7 +297,7 @@ public function testArraySortByMultipleKeysFailsEmptyParameter(array $data, arra
297297
}
298298

299299
/**
300-
* @dataProvider sortByMultipleKeysProvider
300+
* @dataProvider provideSortByMultipleKeys
301301
*
302302
* @param mixed $data
303303
*/
@@ -346,7 +346,7 @@ public static function provideArrayDeepSearch(): iterable
346346
];
347347
}
348348

349-
public static function sortByMultipleKeysProvider(): iterable
349+
public static function provideSortByMultipleKeys(): iterable
350350
{
351351
$seed = [
352352
0 => [

tests/system/Helpers/URLHelper/CurrentUrlTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function testUriStringSubfolderRelative(): void
235235
$this->assertSame('assets/image.jpg', uri_string());
236236
}
237237

238-
public function urlIsProvider(): iterable
238+
public function provideUrlIs(): iterable
239239
{
240240
return [
241241
[
@@ -277,7 +277,7 @@ public function urlIsProvider(): iterable
277277
}
278278

279279
/**
280-
* @dataProvider urlIsProvider
280+
* @dataProvider provideUrlIs
281281
*/
282282
public function testUrlIs(string $currentPath, string $testPath, bool $expected): void
283283
{
@@ -291,7 +291,7 @@ public function testUrlIs(string $currentPath, string $testPath, bool $expected)
291291
}
292292

293293
/**
294-
* @dataProvider urlIsProvider
294+
* @dataProvider provideUrlIs
295295
*/
296296
public function testUrlIsNoIndex(string $currentPath, string $testPath, bool $expected): void
297297
{
@@ -307,7 +307,7 @@ public function testUrlIsNoIndex(string $currentPath, string $testPath, bool $ex
307307
}
308308

309309
/**
310-
* @dataProvider urlIsProvider
310+
* @dataProvider provideUrlIs
311311
*/
312312
public function testUrlIsWithSubfolder(string $currentPath, string $testPath, bool $expected): void
313313
{

tests/system/Test/TestResponseTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function setUp(): void
3333
}
3434

3535
/**
36-
* @dataProvider statusCodeProvider
36+
* @dataProvider provideHttpStatusCodes
3737
*/
3838
public function testIsOK(int $code, bool $isOk): void
3939
{
@@ -46,7 +46,7 @@ public function testIsOK(int $code, bool $isOk): void
4646
/**
4747
* Provides status codes and their expected "OK"
4848
*/
49-
public function statusCodeProvider(): iterable
49+
public function provideHttpStatusCodes(): iterable
5050
{
5151
return [
5252
[
@@ -223,7 +223,7 @@ public function testAssertStatus(): void
223223
}
224224

225225
/**
226-
* @dataProvider statusCodeProvider
226+
* @dataProvider provideHttpStatusCodes
227227
*/
228228
public function testAssertIsOK(int $code, bool $isOk): void
229229
{

tests/system/Validation/FormatRulesTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testRegexMatchFalse(): void
8585
}
8686

8787
/**
88-
* @dataProvider urlProvider
88+
* @dataProvider provideValidUrl
8989
*/
9090
public function testValidURL(?string $url, bool $isLoose, bool $isStrict): void
9191
{
@@ -101,7 +101,7 @@ public function testValidURL(?string $url, bool $isLoose, bool $isStrict): void
101101
}
102102

103103
/**
104-
* @dataProvider urlProvider
104+
* @dataProvider provideValidUrl
105105
*/
106106
public function testValidURLStrict(?string $url, bool $isLoose, bool $isStrict): void
107107
{
@@ -129,7 +129,7 @@ public function testValidURLStrictWithSchema(): void
129129
$this->assertFalse($this->validation->run($data));
130130
}
131131

132-
public function urlProvider(): iterable
132+
public function provideValidUrl(): iterable
133133
{
134134
yield from [
135135
[
@@ -802,7 +802,7 @@ public function provideNumeric(): iterable
802802
/**
803803
* @see https://github.com/codeigniter4/CodeIgniter4/issues/5374
804804
*
805-
* @dataProvider integerInvalidTypeDataProvider
805+
* @dataProvider provideInvalidIntegerType
806806
*
807807
* @param mixed $value
808808
*/
@@ -821,7 +821,7 @@ public function testIntegerWithInvalidTypeData($value, bool $expected): void
821821
/**
822822
* @see https://github.com/codeigniter4/CodeIgniter4/issues/5374
823823
*
824-
* @dataProvider integerInvalidTypeDataProvider
824+
* @dataProvider provideInvalidIntegerType
825825
*
826826
* @param mixed $value
827827
*/
@@ -837,7 +837,7 @@ public function testNumericWithInvalidTypeData($value, bool $expected): void
837837
$this->assertsame($expected, $this->validation->run($data));
838838
}
839839

840-
public function integerInvalidTypeDataProvider(): iterable
840+
public function provideInvalidIntegerType(): iterable
841841
{
842842
// TypeError : CodeIgniter\Validation\FormatRules::integer(): Argument #1 ($str) must be of type ?string, array given
843843
// yield 'array with int' => [

tests/system/Validation/RulesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ public function provideLessThanEqual(): iterable
526526
}
527527

528528
/**
529-
* @dataProvider inListProvider
529+
* @dataProvider provideInList
530530
*/
531531
public function testInList(?string $first, ?string $second, bool $expected): void
532532
{
@@ -536,7 +536,7 @@ public function testInList(?string $first, ?string $second, bool $expected): voi
536536
}
537537

538538
/**
539-
* @dataProvider inListProvider
539+
* @dataProvider provideInList
540540
*/
541541
public function testNotInList(?string $first, ?string $second, bool $expected): void
542542
{
@@ -545,7 +545,7 @@ public function testNotInList(?string $first, ?string $second, bool $expected):
545545
$this->assertSame(! $expected, $this->validation->run($data));
546546
}
547547

548-
public function inListProvider(): iterable
548+
public function provideInList(): iterable
549549
{
550550
yield from [
551551
['red', 'red,Blue,123', true],

tests/system/Validation/StrictRules/FormatRulesTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace CodeIgniter\Validation\StrictRules;
1313

1414
use CodeIgniter\Validation\FormatRulesTest as TraditionalFormatRulesTest;
15-
use Generator;
1615
use Tests\Support\Validation\TestRules;
1716

1817
/**
@@ -40,7 +39,7 @@ final class FormatRulesTest extends TraditionalFormatRulesTest
4039
],
4140
];
4241

43-
public function alphaSpaceProvider(): Generator
42+
public function provideAlphaSpace(): iterable
4443
{
4544
yield from [
4645
[
@@ -70,7 +69,7 @@ public function alphaSpaceProvider(): Generator
7069
];
7170
}
7271

73-
public function integerInvalidTypeDataProvider(): Generator
72+
public function provideInvalidIntegerType(): iterable
7473
{
7574
yield 'array with int' => [
7675
[555],

0 commit comments

Comments
 (0)