mirror of
https://github.com/friendica/friendica
synced 2025-05-06 15:04:10 +02:00
Replace assertRegExp() assertMatchesRegularExpression()
This commit is contained in:
parent
f4907a48d8
commit
015de29b7b
4 changed files with 7 additions and 7 deletions
|
@ -31,7 +31,7 @@ abstract class AbstractLoggerTest extends MockedTest
|
|||
{
|
||||
use LoggerDataTrait;
|
||||
|
||||
const LOGLINE = '/.* \[.*\]: .* \{.*\"file\":\".*\".*,.*\"line\":\d*,.*\"function\":\".*\".*,.*\"uid\":\".*\".*}/';
|
||||
const LOGLINE = '/.* \[.*]: .* {.*\"file\":\".*\".*,.*\"line\":\d*,.*\"function\":\".*\".*,.*\"uid\":\".*\".*}/';
|
||||
|
||||
const FILE = 'test';
|
||||
const LINE = 666;
|
||||
|
@ -72,7 +72,7 @@ abstract class AbstractLoggerTest extends MockedTest
|
|||
|
||||
public function assertLogline($string)
|
||||
{
|
||||
self::assertRegExp(self::LOGLINE, $string);
|
||||
self::assertMatchesRegularExpression(self::LOGLINE, $string);
|
||||
}
|
||||
|
||||
public function assertLoglineNums($assertNum, $string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue