Project

General

Profile

Download (866 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

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

    
11
print("> bootstrapping Drupal for phpUnit ...\n");
12

    
13
//print(">".getcwd()."\n");
14

    
15

    
16
chdir ("../../../../../../"); // cd to {DRUPAL_ROOT}
17
require_once  ('includes/bootstrap.inc');
18

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

    
25
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
26

    
27
print("> bootstrapping done!\n");
28

    
29
flush();
30

    
(2-2/4)