Skip to content

Commit

Permalink
Fix PHPUnit errors when using non-static data provider method (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
rezigned committed Mar 10, 2024
1 parent 87ed49e commit 34efe65
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/Rize/UriTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function service($uri = '', $params = array())
return new UriTemplate($uri, $params);
}

public function dataExpansion()
public static function dataExpansion()
{
$params = array(
'count' => array("one", "two", "three"),
Expand Down Expand Up @@ -249,7 +249,7 @@ public function dataExpansion()
);
}

public function dataExpandWithArrayModifier()
public static function dataExpandWithArrayModifier()
{
return array(
# List
Expand Down Expand Up @@ -302,7 +302,7 @@ public function dataExpandWithArrayModifier()
);
}

public function dataBaseTemplate()
public static function dataBaseTemplate()
{
return array(
array(
Expand Down Expand Up @@ -349,7 +349,7 @@ public function dataBaseTemplate()
);
}

public function dataExtraction()
public static function dataExtraction()
{
return array(
array(
Expand Down Expand Up @@ -511,7 +511,7 @@ public function testExpandFromFixture()
}
}

public function dataExtractStrictMode()
public static function dataExtractStrictMode()
{
$dataTest = array(

Expand Down Expand Up @@ -626,7 +626,7 @@ public function dataExtractStrictMode()
return $dataTest;
}

public function extractStrictModeNotMatchProvider()
public static function extractStrictModeNotMatchProvider()
{
return array(
array(
Expand Down

0 comments on commit 34efe65

Please sign in to comment.