Skip to content

Commit

Permalink
Merge pull request #68 from Codeception/issue-67
Browse files Browse the repository at this point in the history
Include Codeception autoload.php file if functions are not imported
  • Loading branch information
Naktibalda committed May 8, 2021
2 parents 4100bd4 + 7df929c commit 2db5a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c3.php
Expand Up @@ -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')) {
Expand Down

0 comments on commit 2db5a07

Please sign in to comment.