mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-05-03 14:56:29 +02:00
first refonte
This commit is contained in:
commit
9e9cd47b91
226 changed files with 34307 additions and 0 deletions
23
tests/bootstrap.php
Executable file
23
tests/bootstrap.php
Executable file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
###############
|
||||
# ENVIRONMENT #
|
||||
###############
|
||||
define('ENVIRONMENT', 'test');
|
||||
define('FROM_WEB', false);
|
||||
require_once(__DIR__ . '/descartes/load-environment.php');
|
||||
|
||||
##############
|
||||
# INCLUSIONS #
|
||||
##############
|
||||
//On va inclure l'ensemble des fichiers necessaires
|
||||
require_once(PWD . '/descartes/autoload.php');
|
||||
require_once(PWD . '/vendor/autoload.php');
|
||||
require_once(PWD . '/routes.php');
|
||||
|
||||
#########
|
||||
# MODEL #
|
||||
#########
|
||||
//On va appeler un modèle, est l'initialiser
|
||||
$bdd = Model::connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD);
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue