X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FUtil%2FProfilerTest.php;h=25d044354c6534a59367a7ae8a50f55432066cc3;hb=2292263780000a50e1e7583bc170cca619d86f42;hp=9a9492d172d755c684074adbccced93390a427c8;hpb=b21631747714ac2282abfc6d6ac573a3347df11b;p=friendica.git diff --git a/tests/src/Util/ProfilerTest.php b/tests/src/Util/ProfilerTest.php index 9a9492d172..25d044354c 100644 --- a/tests/src/Util/ProfilerTest.php +++ b/tests/src/Util/ProfilerTest.php @@ -1,6 +1,6 @@ $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); } }