This repository was archived by the owner on May 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,24 @@ composer.lock
5353Examples of ** composer.json** and ** .gitignore** are located in the [ examples/] ( examples/ )
5454folder if you need a starting point.
5555
56+ ### Paths
57+
58+ A number of framework and testing path are defined as constants during the
59+ [ bootstrap process] ( src/tests/_support/bootstrap.php ) . These default to the assumed locations
60+ if you have a standard directory structure and you installed the framework via Composer.
61+ If you move directories around or do no use Composer you will need to review these paths
62+ and set them appropriately.
63+
64+ * ** APPPATH** : ` $paths->appDirectory `
65+ * ** ROOTPATH** : ` APPPATH . '../' `
66+ * ** FCPATH** : ` ROOTPATH . 'public/' `
67+ * ** WRITEPATH** : ` $paths->writableDirectory `
68+ * ** SYSTEMPATH** : ` $paths->systemDirectory `
69+ * ** CIPATH** : ` SYSTEMPATH . '../ `
70+ * ** SUPPORTPATH** : ` CIPATH . 'tests/_support/ `
71+ * ** PROJECTSUPPORTPATH** : * bootstrap.php directory*
72+ * ** TESTPATH** : ` PROJECTSUPPORTPATH . '../ `
73+
5674## Updating
5775
5876As this repo is updated with bugfixes and improvements you will want to update your
Original file line number Diff line number Diff line change 2020define ('WRITEPATH ' , realpath ($ paths ->writableDirectory ) . DIRECTORY_SEPARATOR );
2121define ('SYSTEMPATH ' , realpath ($ paths ->systemDirectory ) . DIRECTORY_SEPARATOR );
2222define ('CIPATH ' , realpath (SYSTEMPATH . '../ ' ) . DIRECTORY_SEPARATOR );
23- define ('SUPPORTPATH ' , realpath (ROOTPATH . 'tests/_support ' ) . DIRECTORY_SEPARATOR );
23+ define ('SUPPORTPATH ' , realpath (CIPATH . 'tests/_support ' ) . DIRECTORY_SEPARATOR );
2424
2525// Define necessary project test path constants
2626define ('PROJECTSUPPORTPATH ' , realpath (__DIR__ ) . DIRECTORY_SEPARATOR );
You can’t perform that action at this time.
0 commit comments