<?php
/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
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);
}
}
}
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);
}
}