1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
From: James Valleroy <jvalleroy@mailbox.org>
Date: Sat, 8 Jul 2023 13:08:40 -0400
Subject: Make dataProviders static
---
tests/StringsTest.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/StringsTest.php b/tests/StringsTest.php
index bc60b05..66bd089 100644
--- a/tests/StringsTest.php
+++ b/tests/StringsTest.php
@@ -7,7 +7,7 @@ use Gettext\Generators;
class StringsTest extends AbstractTestCase
{
- public function stringFromPhpProvider()
+ public static function stringFromPhpProvider()
{
return array(
array('"test"', 'test'),
@@ -37,7 +37,7 @@ class StringsTest extends AbstractTestCase
$this->assertSame($decoded, Extractors\PhpCode::convertString($source));
}
- public function poStringsProvider()
+ public static function poStringsProvider()
{
return array(
array('test', '"test"'),
@@ -64,7 +64,7 @@ class StringsTest extends AbstractTestCase
$this->assertSame($phpString, Extractors\Po::convertString($poString));
}
- public function stringFromPo2Provider()
+ public static function stringFromPo2Provider()
{
return array(
array('"\\\\x07 - aka \\\\a: \\a"', "\\x07 - aka \\a: \x07"),
|