Class PhpSecInfo_Test_Core_Open_Basedir

Description

Test Class for open_basedir

Located in /PhpSecInfo/Test/Core/open_basedir.php (line 20)

PhpSecInfo_Test
   |
   --PhpSecInfo_Test_Core
      |
      --PhpSecInfo_Test_Core_Open_Basedir
Variable Summary
string $test_name
mixed $_messages
Method Summary
void _execTest ()
void _setMessages ()
Variables
string $test_name = "open_basedir" (line 28)

This should be a unique, human-readable identifier for this test


Redefinition of:
PhpSecInfo_Test::$test_name
This should be a unique, human-readable identifier for this test
mixed $_messages = array(
PHPSECINFO_TEST_RESULT_OK => array(
'en' => 'open_basedir is enabled, which is the recommended setting. Keep in mind that other web
applications not written in PHP will not be restricted by this setting.',
),PHPSECINFO_TEST_RESULT_NOTICE=>array('en'=>'open_basedir is disabled. When this is enabled, only files that are in the given directory/directories and
their subdirectories can be read by PHP scripts. You should consider turning this on. Keep in mind that other web
applications not written in PHP will not be restricted by this setting.',),)
(line 30)

Redefinition of:
PhpSecInfo_Test::$_messages
This is a hash of messages that correspond to various test result levels.

Inherited Variables

Inherited from PhpSecInfo_Test_Core

PhpSecInfo_Test_Core::$test_group

Inherited from PhpSecInfo_Test

PhpSecInfo_Test::$_language
PhpSecInfo_Test::$_message
PhpSecInfo_Test::$_result
Methods
_execTest (line 43)

Check to see if the open_basedir setting is enabled.

void _execTest ()

Redefinition of:
PhpSecInfo_Test::_execTest()
The "meat" of the test. This is where the real test code goes. You should override this when extending
_setMessages (line 57)

Set the messages specific to this test

void _setMessages ()

Redefinition of:
PhpSecInfo_Test::_setMessages()
This function loads up result messages into the $this->_messages array.

Inherited Methods

Inherited From PhpSecInfo_Test_Core

PhpSecInfo_Test_Core::isTestable()

Inherited From PhpSecInfo_Test

PhpSecInfo_Test::PhpSecInfo_Test()
PhpSecInfo_Test::getBooleanIniValue()
PhpSecInfo_Test::getMessage()
PhpSecInfo_Test::getResult()
PhpSecInfo_Test::getTestGroup()
PhpSecInfo_Test::getTestName()
PhpSecInfo_Test::isTestable()
PhpSecInfo_Test::returnBytes()
PhpSecInfo_Test::setMessageForResult()
PhpSecInfo_Test::setTestName()
PhpSecInfo_Test::test()
PhpSecInfo_Test::_execTest()
PhpSecInfo_Test::_setMessage()
PhpSecInfo_Test::_setMessages()
PhpSecInfo_Test::_setResult()

Documentation generated on Tue, 24 Oct 2006 10:53:37 -0400 by phpDocumentor 1.3.0RC3