Yii2 remote code coverage

I try to set up remote code coverage usign yii2 basic application template.

  1. I install the codception/c3 plugin
  2. I run the acceptance test
  3. I see the error “Call to undefined function Codeception\codecept_is_path_absolute()”

This is the problem:
Usually when codeception is run the entry script vendor/codeception/base/codecept include the autoload file located at “vendor/codeception/base/autoload.php”

When the c3 scritp is run the entry script is the index-test.php, that include the “vendor/autolaod.php” file and not the “vendor/codeception/base/autoload.php”.

So I fix including both the file


// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../vendor/codeception/base/autoload.php';
require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';

$config = require __DIR__ . '/../config/test.php';

include '../c3.php';

(new yii\web\Application($config))->run();

It seems to work…
Any other suggestion?
I don’t find any documentation about configuring remote code coverage with Yii2
This is a codeception/c3 bug or I’m using incompatible version?

codeception v3.1.0
c3 v2.0