test-site.php 649 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * @file
  5. * A command line application to install Drupal for tests.
  6. */
  7. use Drupal\TestSite\TestSiteApplication;
  8. if (PHP_SAPI !== 'cli') {
  9. return;
  10. }
  11. // Use the PHPUnit bootstrap to prime an autoloader that works for test classes.
  12. // Note we have to disable the SYMFONY_DEPRECATIONS_HELPER to ensure deprecation
  13. // notices are not triggered.
  14. putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
  15. require_once __DIR__ . '/../tests/bootstrap.php';
  16. // The application version is 0.1.0 to indicate that it is for internal use only
  17. // and not currently API.
  18. $app = new TestSiteApplication('test-site', '0.1.0');
  19. $app->run();