Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make data providers static
  • Loading branch information
swissspidy committed May 22, 2024
commit 3ffb098529f3ecf5c93cad8f628cec5e22674f23
8 changes: 4 additions & 4 deletions tests/Test_Arguments.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function testAddOptions()
*
* @return array set of args and expected parsed values
*/
public function settingsWithValidOptions()
public static function settingsWithValidOptions()
{
return array(
array(
Expand All @@ -173,7 +173,7 @@ public function settingsWithValidOptions()
*
* @return array set of args and expected parsed values
*/
public function settingsWithMissingOptions()
public static function settingsWithMissingOptions()
{
return array(
array(
Expand All @@ -192,7 +192,7 @@ public function settingsWithMissingOptions()
*
* @return array set of args and expected parsed values
*/
public function settingsWithMissingOptionsWithDefault()
public static function settingsWithMissingOptionsWithDefault()
{
return array(
array(
Expand All @@ -206,7 +206,7 @@ public function settingsWithMissingOptionsWithDefault()
);
}

public function settingsWithNoOptionsWithDefault()
public static function settingsWithNoOptionsWithDefault()
{
return array(
array(
Expand Down
4 changes: 2 additions & 2 deletions tests/Test_Colors.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Test_Colors extends TestCase {
/**
* @dataProvider dataColors
*/
function testColors( $str, $color ) {
public function testColors( $str, $color ) {
// Colors enabled.
Colors::enable( true );

Expand All @@ -21,7 +21,7 @@ function testColors( $str, $color ) {
}
}

function dataColors() {
public static function dataColors() {
$ret = array();
foreach ( Colors::getColors() as $str => $color ) {
$ret[] = array( $str, $color );
Expand Down