NxTIC/phpunit/bootstrap.php

12 lines
359 B
PHP
Executable File

<?php define('__ROOT__', dirname(dirname(__FILE__)) );
// On definit les constantes inexistantes dans PHPUnit
$_SERVER['HTTP_HOST'] = 'stefproject';
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0';
require_once __ROOT__.'/manager/autoloader.php';
?>