5 * This file is part of the Behat.
6 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 define('BEHAT_BIN_PATH', __FILE__);
14 if (is_file($autoload = getcwd() . '/vendor/autoload.php')) {
18 if (!class_exists('Behat\Behat\ApplicationFactory', true)) {
19 if (is_file($autoload = __DIR__ . '/../vendor/autoload.php')) {
21 } elseif (is_file($autoload = __DIR__ . '/../../../autoload.php')) {
25 'You must set up the project dependencies, run the following commands:'.PHP_EOL.
26 'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
27 'php composer.phar install'.PHP_EOL
33 $factory = new \Behat\Behat\ApplicationFactory();
34 $factory->createApplication()->run();