From a827f8aded89f897bb594ba9f2c557bca5615572 Mon Sep 17 00:00:00 2001 From: djmaze <> Date: Tue, 27 Oct 2026 01:33:48 +0100 Subject: [PATCH] Resolve test load path --- test/crypt-forgery.php | 2 +- test/header-injection.php | 2 +- test/raw-inline-type.php | 2 +- test/smime-verify.php | 2 +- test/sso.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/crypt-forgery.php b/test/crypt-forgery.php index a5802cf78..9ef7ebf19 100644 --- a/test/crypt-forgery.php +++ b/test/crypt-forgery.php @@ -27,7 +27,7 @@ namespace RainLoop { namespace { // Enable SnappyMail Api and include index file $_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true; - require '../index.php'; + require __DIR__ . '/../index.php'; // define('APP_SALT', 'test-salt-'.bin2hex(random_bytes(8))); $_COOKIE['smctoken'] = base64_encode(random_bytes(16)); diff --git a/test/header-injection.php b/test/header-injection.php index 187b6a346..88943ca5c 100644 --- a/test/header-injection.php +++ b/test/header-injection.php @@ -3,7 +3,7 @@ // Run with: php test/header-injection.php // Enable SnappyMail Api and include index file $_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true; -require '../index.php'; +require __DIR__ . '/../index.php'; function check(bool $condition, string $message): void { diff --git a/test/raw-inline-type.php b/test/raw-inline-type.php index 21431549f..dce5af4c3 100644 --- a/test/raw-inline-type.php +++ b/test/raw-inline-type.php @@ -3,7 +3,7 @@ // Run with: php test/raw-inline-type.php // Enable SnappyMail Api and include index file $_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true; -require '../index.php'; +require __DIR__ . '/../index.php'; function check(bool $condition, string $message): void { diff --git a/test/smime-verify.php b/test/smime-verify.php index 73f7d8ccf..6da2dc8e5 100644 --- a/test/smime-verify.php +++ b/test/smime-verify.php @@ -1,7 +1,7 @@