Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
PKPRequestTest Class Reference
Inheritance diagram for PKPRequestTest:
PKPTestCase

Public Member Functions

 redirectUrlHook ($hookName, $args)
 
 testGetBasePath ()
 
 testGetBaseUrl ()
 
 testGetBaseUrlWithHostDetection ()
 
 testGetEmptyBasePath ()
 
 testGetProtocolHttpsVariableOff ()
 
 testGetProtocolHttpsVariableOn ()
 
 testGetProtocolNoHttpsVariable ()
 
 testGetRequestPath ()
 
 testGetRequestPathRestful ()
 
 testGetRequestPathWithoutPathinfo ()
 
 testGetRequestPathWithPathinfo ()
 
 testGetServerHostLocalhost ()
 
 testGetServerHostWithHostname ()
 
 testGetServerHostWithHttpHost ()
 
 testGetServerHostWithHttpXForwardedHost ()
 
 testGetUserVar ()
 
 testGetUserVars ()
 
 testIsPathInfoEnabled1 ()
 
 testIsPathInfoEnabled2 ()
 
 testIsRestfulUrlsEnabled1 ()
 
 testIsRestfulUrlsEnabled2 ()
 
 testRedirectUrl ()
 
 testTrustXForwardedForNotSet ()
 
 testTrustXForwardedForOff ()
 
 testTrustXForwardedForOn ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Additional Inherited Members

- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 setTestConfiguration ($config, $configPath= 'config')
 
 setUp ()
 
 tearDown ()
 

Detailed Description

Tests for the PKPRequest class.

See Also
PKPRequest

Definition at line 24 of file PKPRequestTest.php.

Member Function Documentation

PKPRequestTest::redirectUrlHook (   $hookName,
  $args 
)

A hook for redirection testing.

Parameters
$hookNamestring
$argsarray

Definition at line 94 of file PKPRequestTest.php.

PKPRequestTest::testGetBasePath ( )
PKPRequestTest::testGetBaseUrlWithHostDetection ( )
PKPRequestTest::testGetEmptyBasePath ( )

PKPRequest::getBasePath

Definition at line 166 of file PKPRequestTest.php.

PKPRequestTest::testGetProtocolHttpsVariableOff ( )

PKPRequest::getProtocol

Definition at line 312 of file PKPRequestTest.php.

PKPRequestTest::testGetProtocolHttpsVariableOn ( )

PKPRequest::getProtocol

Definition at line 322 of file PKPRequestTest.php.

PKPRequestTest::testGetProtocolNoHttpsVariable ( )
PKPRequestTest::testGetRequestPathRestful ( )
PKPRequestTest::testGetRequestPathWithoutPathinfo ( )
PKPRequestTest::testGetRequestPathWithPathinfo ( )
PKPRequestTest::testGetServerHostLocalhost ( )

PKPRequest::getServerHost

Definition at line 242 of file PKPRequestTest.php.

PKPRequestTest::testGetServerHostWithHostname ( )

PKPRequest::getServerHost testGetServerHostLocalhost

Definition at line 252 of file PKPRequestTest.php.

PKPRequestTest::testGetServerHostWithHttpHost ( )

PKPRequest::getServerHost testGetServerHostWithHostname

Definition at line 264 of file PKPRequestTest.php.

PKPRequestTest::testGetServerHostWithHttpXForwardedHost ( )

PKPRequest::getServerHost testGetServerHostWithHttpHost

Definition at line 277 of file PKPRequestTest.php.

PKPRequestTest::testGetUserVar ( )

PKPRequest::getUserVar

Definition at line 381 of file PKPRequestTest.php.

PKPRequestTest::testGetUserVars ( )

PKPRequest::getUserVars

Definition at line 399 of file PKPRequestTest.php.

PKPRequestTest::testIsPathInfoEnabled1 ( )
PKPRequestTest::testIsPathInfoEnabled2 ( )
PKPRequestTest::testIsRestfulUrlsEnabled1 ( )
PKPRequestTest::testIsRestfulUrlsEnabled2 ( )
PKPRequestTest::testRedirectUrl ( )
PKPRequestTest::testTrustXForwardedForNotSet ( )

PKPRequest::getRemoteAddr

Definition at line 352 of file PKPRequestTest.php.

PKPRequestTest::testTrustXForwardedForOff ( )

PKPRequest::getRemoteAddr

Definition at line 342 of file PKPRequestTest.php.

PKPRequestTest::testTrustXForwardedForOn ( )

PKPRequest::getRemoteAddr

Definition at line 332 of file PKPRequestTest.php.


The documentation for this class was generated from the following file: