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 Jan 17, 2024
1 parent 807b87e commit a210c7b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test.bootstrap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@

$base = __DIR__ . '/..';

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

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 a210c7b

Please sign in to comment.