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 @@