![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/magento2-base/dev/tests/integration/bin/ |
#!/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); }