From 7df929ce3b6ddbddbc05351d0732036297e164cf Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Fri, 7 May 2021 19:55:06 +0300 Subject: [PATCH] Include Codeception autoload.php file if functions are not imported --- c3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c3.php b/c3.php index 42ead4a..b18fb7a 100644 --- a/c3.php +++ b/c3.php @@ -52,7 +52,7 @@ function __c3_error($message) } // Autoload Codeception classes -if (!class_exists('\\Codeception\\Codecept')) { +if (!class_exists('\\Codeception\\Codecept') || !function_exists('codecept_is_path_absolute')) { if (file_exists(__DIR__ . '/codecept.phar')) { require_once 'phar://' . __DIR__ . '/codecept.phar/autoload.php'; } elseif (stream_resolve_include_path(__DIR__ . '/vendor/autoload.php')) {