]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Util/ProfilerTest.php
Add more special chars at tests
[friendica.git] / tests / src / Util / ProfilerTest.php
index 9a9492d172d755c684074adbccced93390a427c8..25d044354c6534a59367a7ae8a50f55432066cc3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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);
        }
 }