-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.atoum.php
31 lines (28 loc) · 1.09 KB
/
.atoum.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* This file is part of isou project.
*
* This file will automatically be included before EACH test if -bf/--bootstrap-file argument is not used.
*
* Use it to initialize the tested code, add autoloader, require mandatory file, or anything that needs to be done before EACH test.
*
* More information on documentation:
* - [en] http://docs.atoum.org/en/chapter3.html#Bootstrap-file
* - [fr] http://docs.atoum.org/fr/chapter3.html#Fichier-de-bootstrap
*
* @author Université Rennes 2 - DSI <dsi-contact@univ-rennes2.fr>
* @license The Unlicense <http://unlicense.org>
*/
// Autoload composer.
require_once __DIR__.'/vendor/autoload.php';
require_once __DIR__.'/tests/unit/mocks/logger.php';
require_once __DIR__.'/tests/unit/mocks/pdo.php';
require_once __DIR__.'/tests/unit/mocks/pdostatement.php';
require_once __DIR__.'/tests/unit/mocks/user.php';
define('PLUGIN_ISOU', '1');
define('PRIVATE_PATH', __DIR__);
define('PUBLIC_PATH', __DIR__.'/www');
define('URL', '');
// TODO: refactoriser pour supprimer ces variables.
define('TIME', time());
define('STR_TIME', date('Y-m-d\TH:i', TIME));