From 8c959d24b696ff8581ebb6c224e42dbccd2d5b96 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 19 Dec 2024 10:11:50 +0100 Subject: [PATCH] use deprecated assertion for stable compatibility --- _test/GeneralTest.php | 4 ++-- _test/QueryTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_test/GeneralTest.php b/_test/GeneralTest.php index 80ef867..8b79637 100644 --- a/_test/GeneralTest.php +++ b/_test/GeneralTest.php @@ -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'])); } diff --git a/_test/QueryTest.php b/_test/QueryTest.php index dac9919..b961aa3 100644 --- a/_test/QueryTest.php +++ b/_test/QueryTest.php @@ -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); } }