diff --git a/tests/system/Commands/Utilities/Routes/SampleURIGeneratorTest.php b/tests/system/Commands/Utilities/Routes/SampleURIGeneratorTest.php index 88c7710e31b9..e1ff2031e396 100644 --- a/tests/system/Commands/Utilities/Routes/SampleURIGeneratorTest.php +++ b/tests/system/Commands/Utilities/Routes/SampleURIGeneratorTest.php @@ -23,9 +23,9 @@ final class SampleURIGeneratorTest extends CIUnitTestCase { /** - * @dataProvider getProvider + * @dataProvider getRouteKeyProvider */ - public function testGet(string $routeKey, string $expected) + public function testGetRouteKey(string $routeKey, string $expected) { $generator = new SampleURIGenerator(); @@ -34,7 +34,7 @@ public function testGet(string $routeKey, string $expected) $this->assertSame($expected, $uri); } - public function getProvider(): Generator + public function getRouteKeyProvider(): Generator { yield from [ 'root' => ['/', '/'], diff --git a/tests/system/HTTP/IncomingRequestTest.php b/tests/system/HTTP/IncomingRequestTest.php index fb349a39cd41..50d8fa3f9707 100644 --- a/tests/system/HTTP/IncomingRequestTest.php +++ b/tests/system/HTTP/IncomingRequestTest.php @@ -840,7 +840,7 @@ public function testGetPostIndexNotExists() $this->assertNull($this->request->getGetPost('gc')); } - public function extensionPHPProvider() + public function extensionPhpProvider() { return [ 'not /index.php' => [ @@ -855,12 +855,12 @@ public function extensionPHPProvider() } /** - * @dataProvider extensionPHPProvider + * @dataProvider extensionPhpProvider * * @param mixed $path * @param mixed $detectPath */ - public function testExtensionPHP($path, $detectPath) + public function testExtensionPhp($path, $detectPath) { $config = new App(); $config->baseURL = 'http://example.com/'; diff --git a/tests/system/Validation/CreditCardRulesTest.php b/tests/system/Validation/CreditCardRulesTest.php index 17bc912e8fdd..9083b90c98af 100644 --- a/tests/system/Validation/CreditCardRulesTest.php +++ b/tests/system/Validation/CreditCardRulesTest.php @@ -50,9 +50,9 @@ protected function setUp(): void } /** - * @dataProvider validCCNumberProvider + * @dataProvider validCreditCardNumberProvider */ - public function testValidCCNumber(string $type, ?string $number, bool $expected): void + public function testValidCreditCardNumber(string $type, ?string $number, bool $expected): void { $data = ['cc' => $number]; $this->validation->setRules(['cc' => "valid_cc_number[{$type}]"]); @@ -64,7 +64,7 @@ public function testValidCCNumber(string $type, ?string $number, bool $expected) * * @see https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm */ - public function validCCNumberProvider(): Generator + public function validCreditCardNumberProvider(): Generator { yield from [ 'null_test' => [ diff --git a/tests/system/Validation/StrictRules/CreditCardRulesTest.php b/tests/system/Validation/StrictRules/CreditCardRulesTest.php index c8ae5e91cbf8..6f730012b56f 100644 --- a/tests/system/Validation/StrictRules/CreditCardRulesTest.php +++ b/tests/system/Validation/StrictRules/CreditCardRulesTest.php @@ -51,9 +51,9 @@ protected function setUp(): void } /** - * @dataProvider validCCNumberProvider + * @dataProvider validCreditCardNumberProvider */ - public function testValidCCNumber(string $type, ?string $number, bool $expected): void + public function testValidCreditCardNumber(string $type, ?string $number, bool $expected): void { $data = ['cc' => $number]; $this->validation->setRules(['cc' => "valid_cc_number[{$type}]"]); @@ -65,7 +65,7 @@ public function testValidCCNumber(string $type, ?string $number, bool $expected) * * @see https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm */ - public function validCCNumberProvider(): Generator + public function validCreditCardNumberProvider(): Generator { yield from [ 'null_test' => [ diff --git a/tests/system/Validation/ValidationTest.php b/tests/system/Validation/ValidationTest.php index 16108cdfacbe..6fc8497824d1 100644 --- a/tests/system/Validation/ValidationTest.php +++ b/tests/system/Validation/ValidationTest.php @@ -326,11 +326,11 @@ public function testClosureRuleWithLabel(): void /** * @see https://github.com/codeigniter4/CodeIgniter4/issues/5368 * - * @dataProvider canValidatetArrayDataProvider + * @dataProvider canValidateArrayDataProvider * * @param mixed $value */ - public function testCanValidatetArrayData($value, bool $expected): void + public function testCanValidateArrayData($value, bool $expected): void { $data = []; $this->validation->setRules(['arr' => 'is_array']); @@ -339,7 +339,7 @@ public function testCanValidatetArrayData($value, bool $expected): void $this->assertSame($expected, $this->validation->run($data)); } - public function canValidatetArrayDataProvider(): Generator + public function canValidateArrayDataProvider(): Generator { yield 'list array' => [ [1, 2, 3, 4, 5],