Skip to content

Commit

Permalink
CI: Clean up include path construction for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Nov 21, 2023
1 parent 1864a42 commit 9a36392
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/test.bootstrap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@

$base = __DIR__ . '/..';

// Define application config lookup path
$paths = [
get_include_path(),
$base . '/src',
];

set_include_path(
$base . '/src:' .
$base . '/config:' .
$base . '/system:' .
$base . '/tests/statics:' .
$base . '/tests/statics/Core:' .
get_include_path()
implode(':', $paths)
);

if (file_exists($base . '/vendor/autoload.php') == TRUE)
Expand Down

0 comments on commit 9a36392

Please sign in to comment.