Skip to content

Commit f07c816

Browse files
committed
Update comments
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent 6bc0e5f commit f07c816

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

features/bootstrap/FeatureContext.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
<?php
2+
/**
3+
* Behat tests.
4+
*
5+
* @package ee-cli
6+
*/
27

3-
define('EE_ROOT',__DIR__ . '/../..');
8+
/* Start: Loading required files to enable EE::launch() in tests. */
9+
define( 'EE_ROOT', __DIR__ . '/../..' );
410

5-
include_once(EE_ROOT . '/php/class-ee.php');
6-
include_once(EE_ROOT . '/php/EE/Runner.php');
7-
include_once(EE_ROOT . '/php/utils.php');
11+
include_once( EE_ROOT . '/php/class-ee.php' );
12+
include_once( EE_ROOT . '/php/EE/Runner.php' );
13+
include_once( EE_ROOT . '/php/utils.php' );
814

915
define( 'EE', true );
1016
define( 'EE_VERSION', trim( file_get_contents( EE_ROOT . '/VERSION' ) ) );
@@ -27,14 +33,15 @@
2733
include_once "$logger_dir/Base.php";
2834

2935
foreach ( $iterator as $filename ) {
30-
if ( '.php' !== substr( $filename, - 4 ) ) {
36+
if ( '.php' !== pathinfo( $filename, PATHINFO_EXTENSION ) ) {
3137
continue;
3238
}
3339

3440
include_once "$logger_dir/$filename";
3541
}
3642
$runner = \EE::get_runner();
3743
$runner->init_logger();
44+
/* End. Loading required files to enable EE::launch() in tests. */
3845

3946
use Behat\Behat\Context\Context;
4047
use Behat\Behat\Hook\Scope\AfterFeatureScope;

0 commit comments

Comments
 (0)