Codeception / c3

Remote CodeCoverage for Codeception. Part of Codeception testing framework.
http://codeception.com
71 stars 46 forks source link

Uncaught Error: Undefined constant C3_CODECOVERAGE_MEDIATE_STORAGE #86

Closed root-aza closed 1 year ago

root-aza commented 1 year ago
<br />
<b>Fatal error</b>:  Uncaught Error: Undefined constant &quot;C3_CODECOVERAGE_MEDIATE_STORAGE&quot; in /app/vendor/codeception/c3/c3.php:45
Stack trace:
#0 /app/vendor/codeception/c3/c3.php(71): __c3_error('Codeception is ...')
#1 /app/public/index.php(7): require_once('/app/vendor/cod...')
#2 {main}
  thrown in <b>/app/vendor/codeception/c3/c3.php</b> on line <b>45</b><br />

environment:

index.php

<?php

declare(strict_types=1);

use App\Kernel;

require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
require_once dirname(__DIR__) . '/vendor/codeception/c3/c3.php';

return static fn (array $context): Kernel => new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
marcovtwout commented 1 year ago

Duplicate of https://github.com/Codeception/c3/issues/37