Skip to content

Commit 2db5a07

Browse files
authored
Merge pull request #68 from Codeception/issue-67
Include Codeception autoload.php file if functions are not imported
2 parents 4100bd4 + 7df929c commit 2db5a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function __c3_error($message)
5252
}
5353

5454
// Autoload Codeception classes
55-
if (!class_exists('\\Codeception\\Codecept')) {
55+
if (!class_exists('\\Codeception\\Codecept') || !function_exists('codecept_is_path_absolute')) {
5656
if (file_exists(__DIR__ . '/codecept.phar')) {
5757
require_once 'phar://' . __DIR__ . '/codecept.phar/autoload.php';
5858
} elseif (stream_resolve_include_path(__DIR__ . '/vendor/autoload.php')) {

0 commit comments

Comments
 (0)