Open Journal Systems  2.4.3
 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 ()
 
- 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 87 of file PKPRequestTest.php.

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

PKPRequest::getBasePath

Definition at line 159 of file PKPRequestTest.php.

PKPRequestTest::testGetProtocolHttpsVariableOff ( )

PKPRequest::getProtocol

Definition at line 305 of file PKPRequestTest.php.

PKPRequestTest::testGetProtocolHttpsVariableOn ( )

PKPRequest::getProtocol

Definition at line 315 of file PKPRequestTest.php.

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

PKPRequest::getServerHost

Definition at line 235 of file PKPRequestTest.php.

PKPRequestTest::testGetServerHostWithHostname ( )

PKPRequest::getServerHost testGetServerHostLocalhost

Definition at line 245 of file PKPRequestTest.php.

PKPRequestTest::testGetServerHostWithHttpHost ( )

PKPRequest::getServerHost testGetServerHostWithHostname

Definition at line 257 of file PKPRequestTest.php.

PKPRequestTest::testGetServerHostWithHttpXForwardedHost ( )

PKPRequest::getServerHost testGetServerHostWithHttpHost

Definition at line 270 of file PKPRequestTest.php.

PKPRequestTest::testGetUserVar ( )

PKPRequest::getUserVar

Definition at line 325 of file PKPRequestTest.php.

PKPRequestTest::testGetUserVars ( )

PKPRequest::getUserVars

Definition at line 343 of file PKPRequestTest.php.

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

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