Skip to content

Commit

Permalink
CI: Clean up include path construction for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Feb 8, 2024
1 parent 4af3828 commit 9e13621
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion tests/phpstan.autoload.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
// Define application config lookup path
$paths = [
get_include_path(),
$base . '/config',
$base . '/src',
];

Expand Down
13 changes: 8 additions & 5 deletions tests/test.bootstrap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +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 . '/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 9e13621

Please sign in to comment.