Replace assertRegExp() assertMatchesRegularExpression()

This commit is contained in:
Philipp 2021-12-12 20:19:52 +01:00
parent f4907a48d8
commit 015de29b7b
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 7 additions and 7 deletions

View file

@ -229,7 +229,7 @@ class ProfilerTest extends MockedTest
foreach ($data as $perf => $items) {
foreach ($items['functions'] as $function) {
// assert that the output contains the functions
self::assertRegExp('/' . $function . ': \d+/', $output);
self::assertMatchesRegularExpression('/' . $function . ': \d+/', $output);
}
}
}
@ -286,7 +286,7 @@ class ProfilerTest extends MockedTest
self::assertTrue($profiler->isRendertime());
$output = $profiler->getRendertimeString();
self::assertRegExp('/test1: \d+/', $output);
self::assertRegExp('/test2: \d+/', $output);
self::assertMatchesRegularExpression('/test1: \d+/', $output);
self::assertMatchesRegularExpression('/test2: \d+/', $output);
}
}