Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Commit dc1853d

Browse files
authored
Merge pull request #7 from MGatner/common
Bootstrap Common.php
2 parents 646ca06 + 5620e10 commit dc1853d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/tests/_support/bootstrap.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@
2828
define('MODULEPATH', realpath(__DIR__ . '/../../') . DIRECTORY_SEPARATOR);
2929
define('COMPOSER_PATH', MODULEPATH . 'vendor/autoload.php');
3030

31+
// Let's see if an app/Common.php file exists
32+
if (file_exists(APPPATH . 'Common.php'))
33+
{
34+
require_once APPPATH . 'Common.php';
35+
}
36+
37+
// Require system/Common.php
38+
require_once SYSTEMPATH . 'Common.php';
39+
3140
// Set environment values that would otherwise stop the framework from functioning during tests.
3241
if (! isset($_SERVER['app.baseURL']))
3342
{

0 commit comments

Comments
 (0)