Blame view

tests/codeception/bin/yii 1.06 KB
c7f222e2   Artem   first
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
  #!/usr/bin/env php
  <?php
  /**
   * Yii console bootstrap file.
   *
   * @link http://www.yiiframework.com/
   * @copyright Copyright (c) 2008 Yii Software LLC
   * @license http://www.yiiframework.com/license/
   */
  
  require_once __DIR__ . '/_bootstrap.php';
  
  $config = yii\helpers\ArrayHelper::merge(
      require(YII_APP_BASE_PATH . '/common/config/main.php'),
      require(YII_APP_BASE_PATH . '/common/config/main-local.php'),
      require(YII_APP_BASE_PATH . '/console/config/main.php'),
      require(YII_APP_BASE_PATH . '/console/config/main-local.php'),
      require(dirname(__DIR__) . '/config/config.php'),
      [
          'controllerMap' => [
              'fixture' => [
                  'class' => 'yii\faker\FixtureController',
                  'fixtureDataPath' => '@tests/codeception/common/fixtures/data',
                  'templatePath' => '@tests/codeception/common/templates/fixtures',
                  'namespace' => 'tests\codeception\common\fixtures',
              ],
          ],
      ]
  );
  
  $application = new yii\console\Application($config);
  $exitCode = $application->run();
  exit($exitCode);