1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-13 08:34:19 +02:00

feat(core): add tests for Flextype Core Functionality. #477

This commit is contained in:
Awilum
2020-10-16 14:21:05 +03:00
parent e2d25f1737
commit a6b6e80897
5 changed files with 115 additions and 0 deletions

12
tests/Pest.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
define('FLEXTYPE_MINIMUM_PHP', '7.3.0');
define('ROOT_DIR', str_replace(DIRECTORY_SEPARATOR, '/', getcwd()));
define('PATH', [
'project' => ROOT_DIR . '/project',
'tmp' => ROOT_DIR . '/var/tmp',
]);
! is_file($flextype_autoload = ROOT_DIR . '/vendor/autoload.php') and exit('Please run: <i>composer install</i> for flextype');
$flextype_loader = require_once $flextype_autoload;
include ROOT_DIR . '/src/flextype/bootstrap.php';