File: 0009-Make-dataProviders-static.patch

package info (click to toggle)
php-oscarotero-gettext 4.8.12-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,652 kB
  • sloc: php: 5,231; xml: 22; javascript: 18; makefile: 14
file content (39 lines) | stat: -rw-r--r-- 1,267 bytes parent folder | download | duplicates (2)
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"),