Codeception / Codeception/c3

Constant C3_CODECOVERAGE_MEDIATE_STORAGE can be used before it's defined

Abierto
#37 3 comentarios 4 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
73
Forks
46
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

If these lines fail:

```php
try {
\Codeception\Configuration::config($config_file);
} catch (\Exception $e) {
__c3_error($e->getMessage());
}
```

due to `\Codeception\Configuration` not existing, then

```php
$errorLogFile = defined('C3_CODECOVERAGE_ERROR_LOG_FILE') ?
C3_CODECOVERAGE_ERROR_LOG_FILE :
C3_CODECOVERAGE_MEDIATE_STORAGE . DIRECTORY_SEPARATOR . 'error.txt';
```

is called before

```php
define('C3_CODECOVERAGE_MEDIATE_STORAGE', Codeception\Configuration::logDir() . 'c3tmp');
define('C3_CODECOVERAGE_PROJECT_ROOT', Codeception\Configuration::projectDir());
define('C3_CODECOVERAGE_TESTNAME', $_SERVER['HTTP_X_CODECEPTION_CODECOVERAGE']);
```
is run.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.