NxTIC/phpunit/bootstrap.php

17 lines
422 B
PHP
Executable File

<?php define('__ROOT__', dirname(dirname(__FILE__)) );
// On definit les constantes inexistantes dans PHPUnit
$_SERVER['HTTP_HOST'] = 'socioview';
$_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';
$_SESSION = [];
$_SESSION['permission'] = array('phpunit');
require_once __ROOT__.'/manager/autoloader.php';
?>