mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +00:00
Replace assertRegExp() assertMatchesRegularExpression()
This commit is contained in:
parent
f4907a48d8
commit
015de29b7b
4 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue