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); } }