File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 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
915define ( 'EE ' , true );
1016define ( 'EE_VERSION ' , trim ( file_get_contents ( EE_ROOT . '/VERSION ' ) ) );
2733include_once "$ logger_dir/Base.php " ;
2834
2935foreach ( $ 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
3946use Behat \Behat \Context \Context ;
4047use Behat \Behat \Hook \Scope \AfterFeatureScope ;
You can’t perform that action at this time.
0 commit comments