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
pprkut committed Feb 8, 2024
1 parent aaf1cf0 commit 4af3828
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
@@ -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(),
6 changes: 4 additions & 2 deletions tests/test.bootstrap.inc.php
Original file line number Diff line number Diff line change
@@ -23,14 +23,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 autoloader.
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');

0 comments on commit 4af3828

Please sign in to comment.