forked from zendframework/zend-tag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.php
34 lines (30 loc) · 1.1 KB
/
bootstrap.php
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
27
28
29
30
31
32
33
34
<?php
/**
* @link http://github.com/zendframework/zend-tag for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
/*
* Set error reporting to the level to which Zend Framework code must comply.
*/
error_reporting(E_ALL | E_STRICT);
if (class_exists('PHPUnit_Runner_Version', true)) {
$phpUnitVersion = PHPUnit_Runner_Version::id();
if ('@package_version@' !== $phpUnitVersion && version_compare($phpUnitVersion, '4.0.0', '<')) {
echo 'This version of PHPUnit (' . PHPUnit_Runner_Version::id() . ') is not supported'
. ' in the zend-tag unit tests. Supported is version 4.0.0 or higher.'
. ' See also the CONTRIBUTING.md file in the component root.' . PHP_EOL;
exit(1);
}
unset($phpUnitVersion);
}
/**
* Setup autoloading
*/
require __DIR__ . '/../vendor/autoload.php';
/**
* Start output buffering, if enabled
*/
if (defined('TESTS_ZEND_OB_ENABLED') && constant('TESTS_ZEND_OB_ENABLED')) {
ob_start();
}