Skip to content

Commit

Permalink
fix: Error: Call to undefined method GpsLab\Bundle\GeoIP2Bundle\Tests…
Browse files Browse the repository at this point in the history
…\Downloader\MaxMindDownloaderTest::assertMatchesRegularExpression()
  • Loading branch information
Peter Gribanov committed Nov 19, 2024
1 parent 5308cac commit 0a5b0e4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Downloader/MaxMindDownloaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,16 @@ public function testDownload(): void

$this->downloader->download($url, $target);
}

/**
* Hook for BC
*/
public static function assertMatchesRegularExpression(string $pattern, string $string, string $message = ''): void
{
if (method_exists(parent::class, 'assertMatchesRegularExpression')) {
parent::assertMatchesRegularExpression($pattern, $string, $message);
} else {
parent::assertRegExp($pattern, $string, $message);
}
}
}

0 comments on commit 0a5b0e4

Please sign in to comment.