PHP Classes
elePHPant
Icontem

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Fernando Val  >  Springy  >  tests/bootstrap.php  >  Download  
File: tests/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Springy
Microframework for Web application development
Author: By
Last change: PHPUnit 6 update test cases
Ajustments
- Configuration directory moved to root;
- Library directory moved to /springy;
- Vendor directory moved to root.
Date: 1 year ago
Size: 883 bytes
 

 

Contents

Class file image Download
<?php
/**
 * Autoload initialization script for PHPUnit.
 *
 * @copyright 2015 Fernando Val
 * @author Fernando Val <fernando.val@gmail.com>
 *
 * @version 1.0.0.3
 */

// Edit the two lines above and set the relative path to sysconf.php e helpers.php scripts
define('SYSCONF', 'www/sysconf.php');
define('HELPERS', 'www/helpers.php');

require
SYSCONF;
require
HELPERS;
if (!
spl_autoload_register('springyAutoload')) {
    die(
'Internal System Error on Startup');
}

// Load the Composer autoload script
if (file_exists(sysconf('VENDOR_PATH').DIRECTORY_SEPARATOR.'autoload.php')) {
    require
sysconf('VENDOR_PATH').DIRECTORY_SEPARATOR.'autoload.php';
}

// set_exception_handler('springyExceptionHandler');
restore_exception_handler();
// set_error_handler('springyErrorHandler');
restore_error_handler();

// Springy\Kernel::initiate($GLOBALS['SYSTEM'], $springyStartTime);