PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Edgar Asatryan   YII2 notymo   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: YII2 notymo
Send iOS and Android push notifications
Author: By
Last change:
Date: 7 years ago
Size: 419 bytes
 

Contents

Class file image Download
<?php
error_reporting
(-1);

define('YII_ENABLE_ERROR_HANDLER', false);
define('YII_DEBUG', true);

$_SERVER['SCRIPT_NAME'] = '/' . __DIR__;
$_SERVER['SCRIPT_FILENAME'] = __FILE__;


require_once(
__DIR__ . '/../vendor/autoload.php');
require_once(
__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');



Yii::setAlias("@nstdio/yii2notymo/tests/fixtures", __DIR__ . '/fixtures');
Yii::setAlias('@testDbName', 'notymo_test_db');