Codeception / Codeception/c3

Constant C3_CODECOVERAGE_MEDIATE_STORAGE can be used before it's defined

Ouverte
#37 3 commentaires 4 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
PHP
Étoiles
73
Forks
46
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.