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 ad8859b commit 416734a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test.bootstrap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@

$base = __DIR__ . '/..';

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

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

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

0 comments on commit 416734a

Please sign in to comment.