forked from humbug/humbug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
26 lines (25 loc) · 867 Bytes
/
bootstrap.php
File metadata and controls
26 lines (25 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* Humbug
*
* @category Humbug
* @package Humbug
* @copyright Copyright (c) 2015 Pádraic Brady (http://blog.astrumfutura.com)
* @license https://github.com/padraic/humbug/blob/master/LICENSE New BSD License
*/
foreach ([__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) {
if (file_exists($file) && !defined('HUMBUG_COMPOSER_INSTALL')) {
define('HUMBUG_COMPOSER_INSTALL', $file);
break;
}
}
unset($file);
if (!defined('HUMBUG_COMPOSER_INSTALL')) {
fwrite(STDERR, 'You need to run "composer.phar install" to install Humbug.' . PHP_EOL);
exit(1);
}
if (!defined('HHVM_VERSION') && !extension_loaded('xdebug')) {
fwrite(STDERR, 'You need to install and enable xdebug in order to allow for code coverage generation.' . PHP_EOL);
exit(1);
}
require_once HUMBUG_COMPOSER_INSTALL;