Skip to content

Commit

Permalink
use deprecated assertion for stable compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Dec 19, 2024
1 parent d87e888 commit 8c959d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _test/GeneralTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public function testPluginInfo(): void
$this->assertArrayHasKey('url', $info);

$this->assertEquals('dbquery', $info['base']);
$this->assertMatchesRegularExpression('/^https?:\/\//', $info['url']);
$this->assertRegExp('/^https?:\/\//', $info['url']);
$this->assertTrue(mail_isvalid($info['email']));
$this->assertMatchesRegularExpression('/^\d\d\d\d-\d\d-\d\d$/', $info['date']);
$this->assertRegExp('/^\d\d\d\d-\d\d-\d\d$/', $info['date']);
$this->assertTrue(false !== strtotime($info['date']));
}

Expand Down
2 changes: 1 addition & 1 deletion _test/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ public function testUrlParsing($content, $expect)

$this->callInaccessibleMethod($plugin, 'cellFormat', [$content, $R]);

$this->assertMatchesRegularExpression($expect, $R->doc);
$this->assertRegExp($expect, $R->doc);
}
}

0 comments on commit 8c959d2

Please sign in to comment.