-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbootstrap.php
42 lines (36 loc) · 975 Bytes
/
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
35
36
37
38
39
40
41
42
<?php
/**
* Zend Library Extension
*
* PHP version 5
*
* @category Zle
* @package Zle_Test
* @author Fabio Napoleoni <[email protected]>
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://framework.zend.com/
*/
/*
* Set error reporting to the level to which Zend Framework code must comply.
*/
error_reporting( E_ALL | E_STRICT );
// add library folder to include_path
set_include_path(
implode(
PATH_SEPARATOR,
array(
realpath(dirname(__FILE__) . '/../library/'),
get_include_path(),
)
)
);
if (!defined('APPLICATION_ENV')) {
define('APPLICATION_ENV', 'testing');
}
// raise memory limit
ini_set('memory_limit', '512M');
// load the auto loader and register namespaces
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('Zle_');
$autoloader->registerNamespace('PHPUnit_');