Skip to content

Commit 8c959d2

Browse files
committed
use deprecated assertion for stable compatibility
1 parent d87e888 commit 8c959d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_test/GeneralTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public function testPluginInfo(): void
3232
$this->assertArrayHasKey('url', $info);
3333

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

_test/QueryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ public function testUrlParsing($content, $expect)
4040

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

43-
$this->assertMatchesRegularExpression($expect, $R->doc);
43+
$this->assertRegExp($expect, $R->doc);
4444
}
4545
}

0 commit comments

Comments
 (0)