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

Commit 3d313a4

Browse files
authored
Merge pull request #5 from MGatner/reinstate-supportpath
Reinstate SUPPORTPATH
2 parents fbfcf05 + 8610eda commit 3d313a4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

examples/composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
"php" : ">=7.2"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit" : "^7.0",
30+
"codeigniter4/codeigniter4": "dev-develop",
31+
"mikey179/vfsstream": "1.6.*",
3132
"mockery/mockery": "^1.0",
32-
"codeigniter4/codeigniter4": "dev-develop"
33+
"phpunit/phpunit" : "^7.0"
3334
},
3435
"autoload": {
3536
"psr-4": {

src/tests/_support/bootstrap.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
define('FCPATH', realpath(ROOTPATH . 'public') . DIRECTORY_SEPARATOR);
2020
define('SYSTEMPATH', realpath($paths->systemDirectory) . DIRECTORY_SEPARATOR);
2121
define('WRITEPATH', realpath($paths->writableDirectory) . DIRECTORY_SEPARATOR);
22+
define('SUPPORTPATH', realpath(ROOTPATH . 'tests/_support') . DIRECTORY_SEPARATOR);
2223

2324
// Define necessary module test path constants
24-
define('SUPPORTPATH', realpath(__DIR__) . DIRECTORY_SEPARATOR);
25-
define('TESTPATH', realpath(SUPPORTPATH . '../') . DIRECTORY_SEPARATOR);
26-
define('MODULEPATH', realpath(__DIR__ . '/../../') . DIRECTORY_SEPARATOR);
27-
define('COMPOSER_PATH', MODULEPATH . 'vendor/autoload.php');
25+
define('MODULESUPPORTPATH', realpath(__DIR__) . DIRECTORY_SEPARATOR);
26+
define('TESTPATH', realpath(MODULESUPPORTPATH . '../') . DIRECTORY_SEPARATOR);
27+
define('MODULEPATH', realpath(__DIR__ . '/../../') . DIRECTORY_SEPARATOR);
28+
define('COMPOSER_PATH', MODULEPATH . 'vendor/autoload.php');
2829

2930
// Set environment values that would otherwise stop the framework from functioning during tests.
3031
if (! isset($_SERVER['app.baseURL']))

0 commit comments

Comments
 (0)