Class Zend_Environment_Security_Test_Core_UploadTmpDir

Description

Test Class for upload_tmp_dir

Located in /Environment/Security/Test/Core/UploadTmpDir.php (line 32)

Zend_Environment_Security_Test
   |
   --Zend_Environment_Security_Test_Core
      |
      --Zend_Environment_Security_Test_Core_UploadTmpDir
Variable Summary
Method Summary
 unknown isTestable ()
 void _execTest ()
 void _setMessages ()
Variables
string $_name = "upload_tmp_dir" (line 40)

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

  • access: protected

Redefinition of:
Zend_Environment_Security_Test::$_name
This should be a unique, human-readable identifier for this test
mixed $_recommended_value = "A non-world readable/writable directory" (line 42)
  • access: protected

Redefinition of:
Zend_Environment_Security_Test::$_recommended_value
This is the recommended value the test will be looking for

Inherited Variables

Inherited from Zend_Environment_Security_Test_Core

Zend_Environment_Security_Test_Core::$_group

Inherited from Zend_Environment_Security_Test

Zend_Environment_Security_Test::$_current_value
Zend_Environment_Security_Test::$_data
Zend_Environment_Security_Test::$_language
Zend_Environment_Security_Test::$_message
Zend_Environment_Security_Test::$_messages
Zend_Environment_Security_Test::$_result
Methods
isTestable (line 62)

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

  • access: public
unknown isTestable ()

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

Check if upload_tmp_dir matches self::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.

  • see: self::COMMON_TMPDIR
  • access: protected
void _execTest ()

Redefinition of:
Zend_Environment_Security_Test::_execTest()
The "meat" of the test. This is where the real test code goes. You should override this when extending
_retrieveCurrentValue (line 44)
  • access: protected
void _retrieveCurrentValue ()

Redefinition of:
Zend_Environment_Security_Test::_retrieveCurrentValue()
Placeholder - extend for tests
_setMessages (line 100)

Set the messages specific to this test

  • access: protected
void _setMessages ()

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

Inherited Methods

Inherited From Zend_Environment_Security_Test_Core

 Zend_Environment_Security_Test_Core::isTestable()

Inherited From Zend_Environment_Security_Test

 Zend_Environment_Security_Test::__construct()
 Zend_Environment_Security_Test::getCurrentTestValue()
 Zend_Environment_Security_Test::getIniValue()
 Zend_Environment_Security_Test::getMessage()
 Zend_Environment_Security_Test::getMoreInfoURL()
 Zend_Environment_Security_Test::getRecommendedTestValue()
 Zend_Environment_Security_Test::getResult()
 Zend_Environment_Security_Test::getStringValue()
 Zend_Environment_Security_Test::getTestGroup()
 Zend_Environment_Security_Test::getTestName()
 Zend_Environment_Security_Test::getUnixId()
 Zend_Environment_Security_Test::isTestable()
 Zend_Environment_Security_Test::osIsWindows()
 Zend_Environment_Security_Test::returnBytes()
 Zend_Environment_Security_Test::setMessageForResult()
 Zend_Environment_Security_Test::setTestGroup()
 Zend_Environment_Security_Test::setTestName()
 Zend_Environment_Security_Test::sys_get_temp_dir()
 Zend_Environment_Security_Test::test()
 Zend_Environment_Security_Test::_execTest()
 Zend_Environment_Security_Test::_retrieveCurrentValue()
 Zend_Environment_Security_Test::_setMessage()
 Zend_Environment_Security_Test::_setMessages()
 Zend_Environment_Security_Test::_setResult()
Class Constants

Documentation generated on Sun, 27 May 2007 23:29:44 -0700 by phpDocumentor 1.3.2