Skip to content

Commit

Permalink
CI: Adjust autoload include so it's no longer conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Jan 17, 2024
1 parent 3b724fa commit ad8859b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tests/phpstan.autoload.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@
if (file_exists($base . '/vendor/autoload.php') == TRUE)
{
// Load composer autoloader.
require_once $base . '/vendor/autoload.php';
$autoload_file = $base . '/vendor/autoload.php';
}
else
{
// Load decomposer autoloade.
require_once $base . '/decomposer.autoload.inc.php';
$autoload_file = $base . '/decomposer.autoload.inc.php';
}

require_once $autoload_file;

// Define application config lookup path
$paths = [
get_include_path(),
Expand Down
6 changes: 4 additions & 2 deletions tests/test.bootstrap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@
if (file_exists($base . '/vendor/autoload.php') == TRUE)
{
// Load composer autoloader.
require_once $base . '/vendor/autoload.php';
$autoload_file = $base . '/vendor/autoload.php';
}
else
{
// Load decomposer autoloade.
require_once $base . '/decomposer.autoload.inc.php';
$autoload_file = $base . '/decomposer.autoload.inc.php';
}

require_once $autoload_file;

if (defined('TEST_STATICS') === FALSE)
{
define('TEST_STATICS', __DIR__ . '/statics');
Expand Down

0 comments on commit ad8859b

Please sign in to comment.