Skip to content

Commit 3ffb098

Browse files
committed
Make data providers static
1 parent 891d6ed commit 3ffb098

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/Test_Arguments.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function testAddOptions()
150150
*
151151
* @return array set of args and expected parsed values
152152
*/
153-
public function settingsWithValidOptions()
153+
public static function settingsWithValidOptions()
154154
{
155155
return array(
156156
array(
@@ -173,7 +173,7 @@ public function settingsWithValidOptions()
173173
*
174174
* @return array set of args and expected parsed values
175175
*/
176-
public function settingsWithMissingOptions()
176+
public static function settingsWithMissingOptions()
177177
{
178178
return array(
179179
array(
@@ -192,7 +192,7 @@ public function settingsWithMissingOptions()
192192
*
193193
* @return array set of args and expected parsed values
194194
*/
195-
public function settingsWithMissingOptionsWithDefault()
195+
public static function settingsWithMissingOptionsWithDefault()
196196
{
197197
return array(
198198
array(
@@ -206,7 +206,7 @@ public function settingsWithMissingOptionsWithDefault()
206206
);
207207
}
208208

209-
public function settingsWithNoOptionsWithDefault()
209+
public static function settingsWithNoOptionsWithDefault()
210210
{
211211
return array(
212212
array(

tests/Test_Colors.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Test_Colors extends TestCase {
88
/**
99
* @dataProvider dataColors
1010
*/
11-
function testColors( $str, $color ) {
11+
public function testColors( $str, $color ) {
1212
// Colors enabled.
1313
Colors::enable( true );
1414

@@ -21,7 +21,7 @@ function testColors( $str, $color ) {
2121
}
2222
}
2323

24-
function dataColors() {
24+
public static function dataColors() {
2525
$ret = array();
2626
foreach ( Colors::getColors() as $str => $color ) {
2727
$ret[] = array( $str, $color );

0 commit comments

Comments
 (0)