-
-
Notifications
You must be signed in to change notification settings - Fork 158
/
behat-bootstrap.php
executable file
·34 lines (30 loc) · 1 KB
/
behat-bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* CoreShop.
*
* This source file is subject to the GNU General Public License version 3 (GPLv3)
* For the full copyright and license information, please view the LICENSE.md and gpl-3.0.txt
* files that are distributed with this source code.
*
* @copyright Copyright (c) CoreShop GmbH (https://www.coreshop.org)
* @license https://www.coreshop.org/license GNU General Public License version 3 (GPLv3)
*/
if (!defined('PIMCORE_PROJECT_ROOT')) {
define(
'PIMCORE_PROJECT_ROOT',
getenv('PIMCORE_PROJECT_ROOT')
?: getenv('REDIRECT_PIMCORE_PROJECT_ROOT')
?: realpath(getcwd())
);
}
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once __DIR__ .'/src/BehatKernel.php';
if (file_exists(PIMCORE_PROJECT_ROOT.'/pimcore/config/bootstrap.php')) {
require_once PIMCORE_PROJECT_ROOT.'/pimcore/config/bootstrap.php';
}
else {
\Pimcore\Bootstrap::setProjectRoot();
\Pimcore\Bootstrap::bootstrap();
}