Project

General

Profile

Download (846 Bytes) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
//
3
// to be run from within {DRUPAL_ROOT}/sites/*/modules/cdm_dataportal/test/phpunit
4
//
5
// see http://pkp.sfu.ca/wiki/index.php/Configure_Eclipse_for_PHPUnit#Configure_XDebug_Debugger_to_work_with_PHPUnit
6
//
7
print("> bootstrapping Drupal for phpUnit ...\n");
8
//print(">".getcwd()."\n");
9

    
10
// TestUtils.php must be included at the very first step
11
require_once ('TestUtils.php');
12

    
13
chdir ("../../../../../../"); // cd to {DRUPAL_ROOT}
14
require_once  ('includes/bootstrap.inc');
15

    
16
$_SERVER['HTTP_HOST']='127.0.0.1';
17
$_SERVER['REQUEST_METHOD'] = 'get';
18
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
19
$_SERVER['PHP_SELF'] = $_SERVER['SITE_BASE_PATH']."/index.php";
20
//$_SERVER['REQUEST_URI'] = "http://" . $_SERVER['HTTP_HOST'] . "/" . "flora-malesiana/";
21

    
22
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
23

    
24
print("> bootstrapping done!\n");
(2-2/4)