PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Insolita   YII2 Migrik   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Example script
Content type: text/plain
Description: Example script
Class: YII2 Migrik
Create migration files for applications using YII2
Author: By
Last change:
Date: 1 year ago
Size: 379 bytes
 

Contents

Class file image Download
<?php

defined
('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');


require_once(
__DIR__ . '/../../../vendor/autoload.php');
/**
 * Load application environment from .env file
 */
$dotenv = new \Dotenv\Dotenv(__DIR__);
$dotenv->load();
require_once(
__DIR__ . '/../../../vendor/yiisoft/yii2/Yii.php');


\
Yii::setAlias('@tests', __DIR__);