Skip to content

Commit

Permalink
Fix PHPUnit warnings and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rezigned committed Mar 10, 2024
1 parent 87ed49e commit 5daf457
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 @@ -439,7 +439,7 @@ public function dataExtraction()
/**
* @dataProvider dataExpansion
*/
public function testExpansion($expected, $input)
public static function testExpansion($expected, $input)
{
$service = $this->service();
$result = $service->expand($input['uri'], $input['params']);
Expand All @@ -450,7 +450,7 @@ public function testExpansion($expected, $input)
/**
* @dataProvider dataExpandWithArrayModifier
*/
public function testExpandWithArrayModifier($expected, $input)
public static function testExpandWithArrayModifier($expected, $input)
{
$service = $this->service();
$result = $service->expand($input['uri'], $input['params']);
Expand All @@ -461,7 +461,7 @@ public function testExpandWithArrayModifier($expected, $input)
/**
* @dataProvider dataBaseTemplate
*/
public function testBaseTemplate($expected, $base, $other)
public static function testBaseTemplate($expected, $base, $other)
{
$service = $this->service($base['uri'], $base['params']);
$result = $service->expand($other['uri'], $other['params']);
Expand All @@ -472,7 +472,7 @@ public function testBaseTemplate($expected, $base, $other)
/**
* @dataProvider dataExtraction
*/
public function testExtract($template, $uri, $expected)
public static function testExtract($template, $uri, $expected)
{
$service = $this->service();
$actual = $service->extract($template, $uri);
Expand Down Expand Up @@ -663,7 +663,7 @@ public function extractStrictModeNotMatchProvider()
* @param string $uri
* @param array $expectedParams
*/
public function testExtractStrictMode($template, $uri, array $expectedParams)
public static function testExtractStrictMode($template, $uri, array $expectedParams)
{
$service = $this->service();
$params = $service->extract($template, $uri, true);
Expand All @@ -678,7 +678,7 @@ public function testExtractStrictMode($template, $uri, array $expectedParams)
* @param string $template
* @param string $uri
*/
public function testExtractStrictModeNotMatch($template, $uri)
public static function testExtractStrictModeNotMatch($template, $uri)
{
$service = $this->service();
$actual = $service->extract($template, $uri, true);
Expand Down

0 comments on commit 5daf457

Please sign in to comment.