Skip to content

Commit

Permalink
fix: test case wrong PHP syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Mar 7, 2024
1 parent b136ee3 commit 6650347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/DiffHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static function provideRendererOutputCases(): iterable
$data = [];

foreach ($rendererNames as $rendererName) {
$tests = $this->findRendererOutputTestFiles($rendererName);
$tests = self::findRendererOutputTestFiles($rendererName);

foreach ($tests as $idx => $files) {
$data[] = [$rendererName, $idx, $files];
Expand All @@ -91,7 +91,7 @@ public static function provideRendererOutputCases(): iterable
*
* @param string $rendererName The renderer name
*/
protected function findRendererOutputTestFiles(string $rendererName): array
protected static function findRendererOutputTestFiles(string $rendererName): array
{
$rendererNameRegex = preg_quote($rendererName, '/');
$fileNameRegex = "/{$rendererNameRegex}-(?P<idx>[0-9]+)-(?P<name>[^.\\-]+)\\.txt$/u";
Expand Down

0 comments on commit 6650347

Please sign in to comment.