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 Dec 23, 2023
1 parent 8a7cf2a commit 47195dd
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 . '/tests:' .
$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 47195dd

Please sign in to comment.