bootstrap.php in Zircon Profile 8.0
Same filename in this branch
- 8.0 core/tests/bootstrap.php
- 8.0 vendor/sebastian/comparator/tests/bootstrap.php
- 8.0 vendor/twig/twig/test/bootstrap.php
- 8.0 vendor/egulias/email-validator/tests/bootstrap.php
- 8.0 vendor/phpunit/phpunit-mock-objects/tests/bootstrap.php
- 8.0 vendor/phpunit/phpunit/tests/bootstrap.php
- 8.0 vendor/phpunit/php-token-stream/tests/bootstrap.php
- 8.0 vendor/composer/installers/tests/bootstrap.php
- 8.0 vendor/composer/installers/src/bootstrap.php
- 8.0 vendor/behat/mink/driver-testsuite/bootstrap.php
- 8.0 vendor/symfony-cmf/routing/Tests/bootstrap.php
- 8.0 vendor/guzzlehttp/psr7/tests/bootstrap.php
- 8.0 vendor/guzzlehttp/promises/tests/bootstrap.php
Same filename and directory in other branches
File
vendor/behat/mink/driver-testsuite/bootstrap.phpView source
<?php
$file = __DIR__ . '/../../../autoload.php';
if (!file_exists($file)) {
echo PHP_EOL . 'The Mink driver testsuite expects Mink to be installed as a composer dependency of your project' . PHP_EOL;
exit(1);
}
/** @var \Composer\Autoload\ClassLoader $loader */
$loader = (require $file);
$loader
->addPsr4('Behat\\Mink\\Tests\\Driver\\', __DIR__ . '/tests');
// Clean the global variables
unset($file);
unset($loader);
// Check the definition of the driverLoaderFactory
if (!isset($GLOBALS['driver_config_factory'])) {
echo PHP_EOL . 'The "driver_config_factory" global variable must be set.' . PHP_EOL;
exit(1);
}
if (!is_callable($GLOBALS['driver_config_factory'])) {
echo PHP_EOL . 'The "driver_config_factory" global variable must be a callable.' . PHP_EOL;
exit(1);
}