## 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
mixed $recommended_value
string $test_name
Method Summary
unknown isTestable ()
void _execTest ()
void _retrieveCurrentValue ()
void _setMessages ()
Variables
mixed $recommended_value = "A non-world readable/writable directory" (line 42)

- access: protected

string $test_name = "upload_tmp_dir" (line 40)

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

- access: protected

#### 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::$_name
> Zend_Environment_Security_Test::$_recommended_value
> 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.

- access: protected
- see: self::COMMON_TMPDIR

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::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

#### Inherited Constants

Inherited from Zend_Environment_Security_Test

> Zend_Environment_Security_Test::COMMON_TMPDIR
> Zend_Environment_Security_Test::LANG_DEFAULT
> Zend_Environment_Security_Test::MOREINFO_BASEURL
> Zend_Environment_Security_Test::RESULT_ERROR
> Zend_Environment_Security_Test::RESULT_NOTICE
> Zend_Environment_Security_Test::RESULT_NOTRUN
> Zend_Environment_Security_Test::RESULT_OK
> Zend_Environment_Security_Test::RESULT_WARN

Documentation generated on Wed, 21 Feb 2007 12:03:10 -0800 by phpDocumentor 1.3.1