ezsystems/ezp-next — comment on commit 8b75b1b8a05bdcb44be2f37a69a25e07d9ad124e
File:  line 0
By patrickallaert:

Agreed with point 1.

I think it is not necessary to define EZPNEXT_PATH / $ezpNextPath at all (on this side). It should be sufficient to:

diff --git config.php-RECOMMENDED config.php-RECOMMENDED
index 0e2030c..fb8bd38 100644
--- config.php-RECOMMENDED
+++ config.php-RECOMMENDED
@@ -44,8 +44,8 @@ $settings = array(
'ezc-src-path' => '/', // pear

// Hash with class name prefix and folder name, needed for autoload system as well as router
- 'repositories' => array( 'ezp' => 'ezp',
- 'ezx' => 'ezx' ),
+ 'repositories' => array( 'ezp' => __DIR__ . '/ezp',
+ 'ezx' => __DIR__ . '/ezx' ),

// Bool value for global development mode setting
'development-mode' => true,
diff --git testsBootstrap.php testsBootstrap.php
index 1a61379..3333a80 100644
--- testsBootstrap.php
+++ testsBootstrap.php
@@ -12,8 +12,8 @@ use ezp\Base\Autoloader,
ezp\Base\Configuration;

// setup autoloaders
-require 'config.php';
-require 'ezp/Base/Autoloader.php';
+require __DIR__ . '/config.php';
+require __DIR__ . '/ezp/Base/Autoloader.php';
spl_autoload_register( array( new Autoloader( $settings['base']['autoload'] ), 'load' ) );

// setup configuration

On eZ Publish side, an API_ROOT_FOLDER / EZPNEXT_PATH / EZPNEXT_ROOT_FOLDER might be defined but its usage shouldn't be propagated in ezp-next IMO.
Basically, it would be used to require() the bootstrap file and that should be enough with the above patch.
Maybe defining a constant for this unique purpose is simply not required?