|
Stud.IP
jlu_3.3 Revision
|
Functions | |
| fakeServer ($uri, $domains) | |
| fakeServerGlobals ($uri) | |
| computeRelativePath () | |
| computeAbsoluteURI () | |
| echoWebGlobals () | |
Variables | |
| $STUDIP_BASE_PATH = realpath(dirname(__FILE__) . '/../..') | |
| $ABSOLUTE_PATH_STUDIP = $STUDIP_BASE_PATH . '/public/' | |
| computeAbsoluteURI | ( | ) |
Computes $ABSOLUTE_URI_STUDIP. Must be called after computeRelativePath.

| computeRelativePath | ( | ) |
Compute $CANONICAL_RELATIVE_PATH_STUDIP. Must be called after fakeserver().

| echoWebGlobals | ( | ) |
Utility to help with debugging unit test creation. Should not be called in working unit tests.
| fakeServer | ( | $uri, | |
| $domains | |||
| ) |
Set various variables that are usually present when running Stud.IP on a server.
| $uri | string URI to "opened" site on faked server. |
| $domains | string-array Value to which $STUDIP_DOMAINS is set. |


| fakeServerGlobals | ( | $uri | ) |
Set various PHP globals that are usually present on a server.
| $uri | string URI to "opened" site on faked server. |

| $ABSOLUTE_PATH_STUDIP = $STUDIP_BASE_PATH . '/public/' |
| $STUDIP_BASE_PATH = realpath(dirname(__FILE__) . '/../..') |