Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 39 lines (32 sloc) 1.339 kB
#!/usr/bin/php
<?php
/**
* Codeception CLI
*/
if (!class_exists('UniversalClassLoader')) {
$bootstrap_folder = (is_dir(__DIR__ . '/src'))
? dirname(__FILE__)
: 'Codeception';
require_once $bootstrap_folder.'/autoload.php';
}
if (isset($argv[1])) {
if (($argv[1] != 'run') && ($version = \Codeception\Codecept::checkLastVersion())) {
if (version_compare($version, \Codeception\Codecept::VERSION) > 0) {
echo "UPDATE: version $version released. See changes on: http://codeception.com.\n";
}
}
}
use Symfony\Component\Console\Application,
Symfony\Component\Console\Input\InputInterface,
Symfony\Component\Console\Input\InputDefinition,
Symfony\Component\Console\Input\InputOption;
$app = new Application('Codeception', Codeception\Codecept::VERSION);
$app->add(new Codeception\Command\Build('build'));
$app->add(new Codeception\Command\Run('run'));
$app->add(new Codeception\Command\Install('install'));
$app->add(new Codeception\Command\Bootstrap('bootstrap'));
$app->add(new Codeception\Command\GenerateCept('generate:cept'));
$app->add(new Codeception\Command\GenerateCest('generate:cest'));
$app->add(new Codeception\Command\GenerateSuite('generate:suite'));
$app->add(new Codeception\Command\GenerateScenarios('generate:scenarios'));
$app->run();
Jump to Line
Something went wrong with that request. Please try again.