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