Class PhpSecInfo_Test_Session_Save_Path

Description

Test class for session save_path

Located in /PhpSecInfo/Test/Session/save_path.php (line 19)

PhpSecInfo_Test
   |
   --PhpSecInfo_Test_Session
      |
      --PhpSecInfo_Test_Session_Save_Path
Variable Summary
Method Summary
unknown isTestable ()
void _execTest ()
void _setMessages ()
Variables
mixed $recommended_value = "A non-world readable/writable directory" (line 29)

Redefinition of:
PhpSecInfo_Test::$recommended_value
This is the recommended value the test will be looking for
string $test_name = "save_path" (line 27)

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

Inherited Variables

Inherited from PhpSecInfo_Test_Session

PhpSecInfo_Test_Session::$test_group

Inherited from PhpSecInfo_Test

PhpSecInfo_Test::$current_value
PhpSecInfo_Test::$_language
PhpSecInfo_Test::$_message
PhpSecInfo_Test::$_messages
PhpSecInfo_Test::$_result
Methods
isTestable (line 51)

We are disabling this function on Windows OSes right now until we can be certain of the proper way to check world-readability

unknown isTestable ()

Redefinition of:
PhpSecInfo_Test_Session::isTestable()
"Session" tests should pretty much be always testable, so the default is just to return true
_execTest (line 68)

Check if session.save_path matches PHPSECINFO_TEST_COMMON_TMPDIR, or is word-writable

This is still unix-specific, and it's possible that for now this test should be disabled under Windows builds.

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
_retrieveCurrentValue (line 31)
void _retrieveCurrentValue ()

Redefinition of:
PhpSecInfo_Test::_retrieveCurrentValue()
Placeholder - extend for tests
_setMessages (line 89)

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_Session

PhpSecInfo_Test_Session::isTestable()

Inherited From PhpSecInfo_Test

PhpSecInfo_Test::PhpSecInfo_Test()
PhpSecInfo_Test::getBooleanIniValue()
PhpSecInfo_Test::getCurrentTestValue()
PhpSecInfo_Test::getMessage()
PhpSecInfo_Test::getMoreInfoURL()
PhpSecInfo_Test::getRecommendedTestValue()
PhpSecInfo_Test::getResult()
PhpSecInfo_Test::getStringValue()
PhpSecInfo_Test::getTestGroup()
PhpSecInfo_Test::getTestName()
PhpSecInfo_Test::getUnixId()
PhpSecInfo_Test::isTestable()
PhpSecInfo_Test::osIsWindows()
PhpSecInfo_Test::returnBytes()
PhpSecInfo_Test::setMessageForResult()
PhpSecInfo_Test::setTestGroup()
PhpSecInfo_Test::setTestName()
PhpSecInfo_Test::sys_get_temp_dir()
PhpSecInfo_Test::test()
PhpSecInfo_Test::_execTest()
PhpSecInfo_Test::_retrieveCurrentValue()
PhpSecInfo_Test::_setMessage()
PhpSecInfo_Test::_setMessages()
PhpSecInfo_Test::_setResult()

Documentation generated on Fri, 06 Apr 2007 13:32:20 -0400 by phpDocumentor 1.3.0RC3