elliotchance / concise

✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
MIT License
45 stars 3 forks source link

Update assertions when running concise #308

Closed elliotchance closed 8 years ago

elliotchance commented 8 years ago

The autoloader will be in a different place and we also need to run tests or manually load a bootstrap with the ModuleManager, like:

$autoloadFiles = [
    __DIR__ . '/../vendor/autoload.php',
    'vendor/autoload.php',
];

foreach ($autoloadFiles as $autoload) {
    if (file_exists($autoload)) {
        require_once($autoload);
        break;
    }
}

require_once('protected/tests/bootstrap.php');
elliotchance commented 8 years ago

Need to write docs on how to use this.

elliotchance commented 8 years ago

Also the assertions aren't updated automatically when running the CLI.