#!/usr/bin/env php
<?php

/*
 * This file is part of the Behat.
 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

define('BEHAT_PHP_BIN_PATH', '/usr/bin/env php');
define('BEHAT_BIN_PATH',     __FILE__);
define('BEHAT_VERSION',      'DEV');

if (is_dir(__DIR__ . '/../vendor')) {
    require_once __DIR__ . '/../vendor/.composer/autoload.php';
} elseif (is_file(__DIR__ . '/../../../.composer/autoload.php')) {
    require_once __DIR__ . '/../../../.composer/autoload.php';
} elseif (is_file(__DIR__ . '/../.composer/autoload.php')) {
    require_once __DIR__ . '/../.composer/autoload.php';
} else {
    require_once 'behat/autoload.php';
}

$app = new Behat\Behat\Console\BehatApplication(BEHAT_VERSION);
$app->run();
