From f771940f14209068c6c00a252f1898874f1e9a5c Mon Sep 17 00:00:00 2001 From: Bruno Meilick Date: Sun, 22 Oct 2023 13:05:14 +0100 Subject: [PATCH] :wrench: Test workflow Signed-off-by: bnomei --- tests/index.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tests/index.php b/tests/index.php index 58e24b7..b8b3209 100644 --- a/tests/index.php +++ b/tests/index.php @@ -3,18 +3,5 @@ const KIRBY_HELPER_DUMP = false; const KIRBY_HELPER_E = false; -function patchKirbyHelpers() -{ - $h = __DIR__ . '/kirby/config/helpers.php'; - if (file_exists($h)) { - // open file and change a function name dump to xdump and save file again - $content = file_get_contents($h); - $content = str_replace('function dump(', 'function xdump(', $content); - $content = str_replace('function e(', 'function xe(', $content); - file_put_contents($h, $content); - } -} -patchKirbyHelpers(); - require __DIR__.'/../vendor/autoload.php'; echo (new Kirby())->render();