![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/vendor/stripe/stripe-php/ |
#!/usr/bin/env php <?php \chdir(__DIR__); $autoload = (int) $argv[1]; $returnStatus = null; if (!$autoload) { // Modify composer to not autoload Stripe $composer = \json_decode(\file_get_contents('composer.json'), true); unset($composer['autoload'], $composer['autoload-dev']); \file_put_contents('composer.json', \json_encode($composer, \JSON_PRETTY_PRINT)); } \passthru('composer update', $returnStatus); if (0 !== $returnStatus) { exit(1); } $config = $autoload ? 'phpunit.xml' : 'phpunit.no_autoload.xml'; \passthru("./vendor/bin/phpunit -c {$config}", $returnStatus); if (0 !== $returnStatus) { exit(1); }