Skip to content

Commit

Permalink
Tests: fix test failure
Browse files Browse the repository at this point in the history
PHPUnit being finicky with yet another deprecation.

Either way, this fixes it.
  • Loading branch information
jrfnl authored and grogy committed May 20, 2024
1 parent 5b45d93 commit 5fcc26c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions tests/Unit/Errors/ParallelLintErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,25 @@ public function testGetFilePath($filePath)
$this->assertSame($filePath, $error->getFilePath());
}

/**
* Data provider.
*
* @return array
*/
public static function dataGetFilePath()
{
$data = self::dataGetShortFilePath();
foreach ($data as $name => $params) {
unset($data[$name]['expectedShort']);
}

return $data;
}

/**
* Test retrieving the short file path.
*
* @dataProvider dataGetFilePath
* @dataProvider dataGetShortFilePath
*
* @param string $filePath The file path input to run the test with.
* @param string $expectedShort The expected method return value.
Expand All @@ -88,7 +103,7 @@ public function testGetShortFilePath($filePath, $expectedShort)
*
* @return array
*/
public static function dataGetFilePath()
public static function dataGetShortFilePath()
{
$cwd = getcwd();

Expand Down

0 comments on commit 5fcc26c

Please sign in to comment.