Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / bin / behat
1 #!/usr/bin/env php
2 <?php
3
4 /*
5  * This file is part of the Behat.
6  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 define('BEHAT_BIN_PATH',     __FILE__);
13
14 if (is_file($autoload = getcwd() . '/vendor/autoload.php')) {
15     require $autoload;
16 }
17
18 if (!class_exists('Behat\Behat\ApplicationFactory', true)) {
19     if (is_file($autoload = __DIR__ . '/../vendor/autoload.php')) {
20         require($autoload);
21     } elseif (is_file($autoload = __DIR__ . '/../../../autoload.php')) {
22         require($autoload);
23     } else {
24         fwrite(STDERR,
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
28         );
29         exit(1);
30     }
31 }
32
33 $factory = new \Behat\Behat\ApplicationFactory();
34 $factory->createApplication()->run();