Skip to content

Commit 5fcc26c

Browse files
jrfnlgrogy
authored andcommitted
Tests: fix test failure
PHPUnit being finicky with yet another deprecation. Either way, this fixes it.
1 parent 5b45d93 commit 5fcc26c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

tests/Unit/Errors/ParallelLintErrorTest.php

+17-2
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,25 @@ public function testGetFilePath($filePath)
6767
$this->assertSame($filePath, $error->getFilePath());
6868
}
6969

70+
/**
71+
* Data provider.
72+
*
73+
* @return array
74+
*/
75+
public static function dataGetFilePath()
76+
{
77+
$data = self::dataGetShortFilePath();
78+
foreach ($data as $name => $params) {
79+
unset($data[$name]['expectedShort']);
80+
}
81+
82+
return $data;
83+
}
84+
7085
/**
7186
* Test retrieving the short file path.
7287
*
73-
* @dataProvider dataGetFilePath
88+
* @dataProvider dataGetShortFilePath
7489
*
7590
* @param string $filePath The file path input to run the test with.
7691
* @param string $expectedShort The expected method return value.
@@ -88,7 +103,7 @@ public function testGetShortFilePath($filePath, $expectedShort)
88103
*
89104
* @return array
90105
*/
91-
public static function dataGetFilePath()
106+
public static function dataGetShortFilePath()
92107
{
93108
$cwd = getcwd();
94109

0 commit comments

Comments
 (0)