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:
12
tests/Pest.php
Normal file
12
tests/Pest.php
Normal 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';
|
Reference in New Issue
Block a user