HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/magento.bikenow.co/dev/tests/integration/bin/magento
#!/usr/bin/env php
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

use Magento\Framework\Console\Cli;
use Magento\TestFramework\Console\CliProxy;

if (PHP_SAPI !== 'cli') {
    echo 'bin/magento must be run as a CLI application';
    exit(1);
}

if (isset($_SERVER['INTEGRATION_TEST_PARAMS'])) {
    parse_str($_SERVER['INTEGRATION_TEST_PARAMS'], $params);
    foreach ($params as $paramName => $paramValue) {
        $_SERVER[$paramName] = $paramValue;
    }
} else {
    echo 'Test parameters are required';
    exit(1);
}

try {
    require $_SERVER['INTEGRATION_TESTS_CLI_AUTOLOADER'] ??
        ($_SERVER['MAGE_DIRS']['base']['path'] . '/app/bootstrap.php');
} catch (\Exception $e) {
    echo 'Autoload error: ' . $e->getMessage();
    exit(1);
}
try {
    $handler = new \Magento\Framework\App\ErrorHandler();
    set_error_handler([$handler, 'handler']);
    if (isset($_SERVER['INTEGRATION_TESTS_CLI_AUTOLOADER'])) {
        $application = new CliProxy('Magento CLI');
    } else {
        $application = new Cli('Magento CLI');
    }
    $application->run();
} catch (\Exception $e) {
    while ($e) {
        echo $e->getMessage();
        echo $e->getTraceAsString();
        echo "\n\n";
        $e = $e->getPrevious();
    }
    exit(Cli::RETURN_FAILURE);
}