Skip to content

Commit

Permalink
Merge branch 'refs/heads/github-actions-support-20240625'
Browse files Browse the repository at this point in the history
  • Loading branch information
summerKK committed Jun 25, 2024
2 parents 3800c75 + 0cbe123 commit 9618e3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/WebServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ class WebServiceTest extends TestCase
{
public function testCredit() {
$ws = new \IP2Location\WebService('demo', 'WS24', true);
$this->assertMatchesRegularExpression('/^[0-9]+$/', (string) $ws->getCredit());
if (method_exists($this, 'assertMatchesRegularExpression')) {
$this->assertMatchesRegularExpression('/^[0-9]+$/', (string) $ws->getCredit());
}else{
// Compatible with php 7.2 && phpunit 8.x
$this->assertRegExp('/^[0-9]+$/', (string) $ws->getCredit());
}
}

public function testCountryCode() {
Expand Down

0 comments on commit 9618e3d

Please sign in to comment.