Skip to content

Commit cb7a19c

Browse files
committed
minor #1393 [CI][Tests] Use static dataProvider (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- [CI][Tests] Use static dataProvider Prepare PhpUnit 10 Commits ------- a240daa [CI][Tests] Use static dataProvider
2 parents 824b006 + a240daa commit cb7a19c

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/Cropperjs/tests/CropperjsBundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class CropperjsBundleTest extends TestCase
2626
{
27-
public function provideKernels()
27+
public static function provideKernels()
2828
{
2929
yield 'empty' => [new EmptyAppKernel('test', true)];
3030
yield 'framework' => [new FrameworkAppKernel('test', true)];

src/Dropzone/tests/DropzoneBundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class DropzoneBundleTest extends TestCase
2626
{
27-
public function provideKernels()
27+
public static function provideKernels()
2828
{
2929
yield 'empty' => [new EmptyAppKernel('test', true)];
3030
yield 'framework' => [new FrameworkAppKernel('test', true)];

src/LazyImage/tests/LazyImageBundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class LazyImageBundleTest extends TestCase
2626
{
27-
public function provideKernels()
27+
public static function provideKernels()
2828
{
2929
yield 'empty' => [new EmptyAppKernel('test', true)];
3030
yield 'framework' => [new FrameworkAppKernel('test', true)];

src/Notify/tests/Twig/NotifyRuntimeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testStreamNotifications(array $params, string $expected)
3737
$this->assertSame($expected, $rendered);
3838
}
3939

40-
public function streamNotificationsDataProvider(): iterable
40+
public static function streamNotificationsDataProvider(): iterable
4141
{
4242
$publicUrl = 'http://localhost:9090/.well-known/mercure';
4343

src/Translator/tests/Intl/IntlMessageParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testIntlMessageParser(string $message, array $expectedAst): void
3030
static::assertEquals($expectedAst, $intlMessageParser->parse());
3131
}
3232

33-
public function provideParse()
33+
public static function provideParse()
3434
{
3535
yield 'no parameters' => [
3636
'Hello world!',

src/Translator/tests/MessageParameters/Extractor/IntlMessageParametersExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testExtract(string $message, array $expectedParameters)
2626
static::assertEquals($expectedParameters, $intlMessageParametersExtractor->extract($message));
2727
}
2828

29-
public function provideExtract()
29+
public static function provideExtract()
3030
{
3131
yield [
3232
'Symfony is great!',

src/Translator/tests/MessageParameters/Extractor/MessageParametersExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testExtract(string $message, array $expectedParameters): void
2626
static::assertEquals($messageParametersExtractor->extract($message), $expectedParameters);
2727
}
2828

29-
public function provideExtract()
29+
public static function provideExtract()
3030
{
3131
yield [
3232
'Symfony is great!',

src/Translator/tests/MessageParameters/Printer/TypeScriptMessageParametersPrinterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testPrint(array $parameters, string $expectedTypeScriptType)
2626
static::assertSame($expectedTypeScriptType, $typeScriptMessageParametersPrinter->print($parameters));
2727
}
2828

29-
public function providePrint()
29+
public static function providePrint()
3030
{
3131
yield [
3232
[],

src/Translator/tests/UxTranslatorBundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class UxTranslatorBundleTest extends TestCase
2020
{
21-
public function provideKernels()
21+
public static function provideKernels()
2222
{
2323
yield 'empty' => [new EmptyAppKernel('test', true)];
2424
yield 'framework' => [new FrameworkAppKernel('test', true)];

0 commit comments

Comments
 (0)