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

feat(tests): add new constant PROJECT_NAME

This commit is contained in:
Awilum
2022-06-10 20:27:18 +03:00
parent af5b798ffe
commit 20b9a7ce34

View File

@@ -5,9 +5,19 @@ declare(strict_types=1);
namespace Flextype;
define('ROOT_DIR', str_replace(DIRECTORY_SEPARATOR, '/', getcwd()));
define('PATH_PROJECT', ROOT_DIR . '/project');
/**
* Define the project name.
*/
define('PROJECT_NAME', 'project');
/**
* Define the PATH (without trailing slash).
*/
define('PATH_PROJECT', ROOT_DIR . '/' . PROJECT_NAME);
define('PATH_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;