yii2-netdisk/tests/_console_bootstrap.php

13 lines
398 B
PHP
Raw Normal View History

2014-02-09 19:04:26 +04:00
<?php
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
2014-02-09 19:04:26 +04:00
defined('YII_ENV') ?: define('YII_ENV', 'test');
2014-02-09 19:04:26 +04:00
// fcgi doesn't have STDIN and STDOUT defined by default
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
2014-02-09 19:04:26 +04:00
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');