PHP Класс DefaultConfigTest, PHPSandbox

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$sandbox PhpSandbox\PHPSandbox

Открытые методы

Метод Описание
expectException ( $exception )
setUp ( ) Sets up the test
test ( )
test2 ( )
testAllowsReferences ( ) Test whether sandbox allows references
testAllowsStaticVariableCreation ( ) Test whether sandbox allows static variable creation
testAllowsVariableCreation ( ) Test whether sandbox allows variable creation
testAutowhitelistTrustedCode ( ) Test whether sandbox autowhitelists trusted code
testCallbackViolations ( ) Test whether sandbox disallows violating callbacks
testCallbackViolationsWithStringManipulation ( ) Test whether sandbox disallows violating callbacks even with manipulated sandboxed strings
testConvertErrors ( ) Test whether sandbox converts errors to exceptions
testCustomErrorHandler ( ) Test whether sandbox custom error handler intercepts errors
testCustomExceptionHandler ( ) Test whether sandbox custom exception handler intercepts exceptions
testCustomFunctionValidationFailure ( ) Test whether sandbox custom function validation succeeds
testCustomFunctionValidationSuccess ( ) Test whether sandbox custom function validation succeeds
testCustomValidationErrorHandler ( ) Test whether sandbox custom validation error handler intercepts validation Errors
testDisallowsAliases ( ) Test whether sandbox disallows aliases (aka uses)
testDisallowsBackticks ( ) Test whether sandbox disallows backtick execution
testDisallowsCasting ( ) Test whether sandbox disallows casting
testDisallowsClasses ( ) Test whether sandbox disallows classes
testDisallowsClosures ( ) Test whether sandbox disallows closures
testDisallowsConstants ( ) Test whether sandbox disallows classes
testDisallowsDie ( ) Test whether sandbox disallows die keyword
testDisallowsErrorSuppressing ( ) Test whether sandbox disallows error suppressing
testDisallowsEscaping ( ) Test whether sandbox disallows escaping to HTML
testDisallowsEval ( ) Test whether sandbox disallows eval keyword
testDisallowsExit ( ) Test whether sandbox disallows exit keyword
testDisallowsFunctions ( ) Test whether sandbox disallows functions
testDisallowsGlobals ( ) Test whether sandbox disallows globals
testDisallowsHalting ( ) Test whether sandbox disallows halting
testDisallowsInclude ( ) Test whether sandbox disallows include keyword
testDisallowsIncludeOnce ( ) Test whether sandbox disallows include_once keyword
testDisallowsInterfaces ( ) Test whether sandbox disallows interfaces
testDisallowsNamespaces ( ) Test whether sandbox disallows namespaces
testDisallowsNonwhitelistedClass ( ) Test whether sandbox disallows non-whitelisted class
testDisallowsNonwhitelistedFunction ( ) Test whether sandbox disallows non-whitelisted functions
testDisallowsNonwhitelistedType ( ) Test whether sandbox disallows non-whitelisted class type
testDisallowsRequire ( ) Test whether sandbox disallows require keyword
testDisallowsRequireOnce ( ) Test whether sandbox disallows require_once keyword
testDisallowsTraits ( ) Test whether sandbox disallows traits
testHelloWorldEchoed ( ) Test whether sandbox echoes expected value
testHelloWorldReturned ( ) Test whether sandbox returns expected value
testMagicConstants ( ) Test whether sandbox disallows violating callbacks
testSandboxedStringsMimicStrings ( ) Test whether sandboxed strings do not cause conflicts with is_string, is_object, or is_scalar
testSandboxedStringsSatisfyIntval ( ) Test whether sandboxed strings do not cause conflicts with intval
testSettingAndUnsettingOptions ( )
testSettingAndUnsettingOptionsViaCompatibilityAPI ( )
testStaticTypeOverwriting ( )
testWhitelistMagicConstants ( ) Test whether sandbox disallows violating callbacks

Описание методов

expectException() публичный Метод

public expectException ( $exception )

setUp() публичный Метод

Sets up the test
public setUp ( )

test() публичный Метод

public test ( )

test2() публичный Метод

public test2 ( )

testAllowsReferences() публичный Метод

Test whether sandbox allows references

testAllowsStaticVariableCreation() публичный Метод

Test whether sandbox allows static variable creation

testAllowsVariableCreation() публичный Метод

Test whether sandbox allows variable creation

testAutowhitelistTrustedCode() публичный Метод

Test whether sandbox autowhitelists trusted code

testCallbackViolations() публичный Метод

Test whether sandbox disallows violating callbacks

testCallbackViolationsWithStringManipulation() публичный Метод

Test whether sandbox disallows violating callbacks even with manipulated sandboxed strings

testConvertErrors() публичный Метод

Test whether sandbox converts errors to exceptions
public testConvertErrors ( )

testCustomErrorHandler() публичный Метод

Test whether sandbox custom error handler intercepts errors

testCustomExceptionHandler() публичный Метод

Test whether sandbox custom exception handler intercepts exceptions

testCustomFunctionValidationFailure() публичный Метод

Test whether sandbox custom function validation succeeds

testCustomFunctionValidationSuccess() публичный Метод

Test whether sandbox custom function validation succeeds

testCustomValidationErrorHandler() публичный Метод

Test whether sandbox custom validation error handler intercepts validation Errors

testDisallowsAliases() публичный Метод

Test whether sandbox disallows aliases (aka uses)

testDisallowsBackticks() публичный Метод

Test whether sandbox disallows backtick execution

testDisallowsCasting() публичный Метод

Test whether sandbox disallows casting

testDisallowsClasses() публичный Метод

Test whether sandbox disallows classes

testDisallowsClosures() публичный Метод

Test whether sandbox disallows closures

testDisallowsConstants() публичный Метод

Test whether sandbox disallows classes

testDisallowsDie() публичный Метод

Test whether sandbox disallows die keyword
public testDisallowsDie ( )

testDisallowsErrorSuppressing() публичный Метод

Test whether sandbox disallows error suppressing

testDisallowsEscaping() публичный Метод

Test whether sandbox disallows escaping to HTML

testDisallowsEval() публичный Метод

Test whether sandbox disallows eval keyword
public testDisallowsEval ( )

testDisallowsExit() публичный Метод

Test whether sandbox disallows exit keyword
public testDisallowsExit ( )

testDisallowsFunctions() публичный Метод

Test whether sandbox disallows functions

testDisallowsGlobals() публичный Метод

Test whether sandbox disallows globals

testDisallowsHalting() публичный Метод

Test whether sandbox disallows halting

testDisallowsInclude() публичный Метод

Test whether sandbox disallows include keyword

testDisallowsIncludeOnce() публичный Метод

Test whether sandbox disallows include_once keyword

testDisallowsInterfaces() публичный Метод

Test whether sandbox disallows interfaces

testDisallowsNamespaces() публичный Метод

Test whether sandbox disallows namespaces

testDisallowsNonwhitelistedClass() публичный Метод

Test whether sandbox disallows non-whitelisted class

testDisallowsNonwhitelistedFunction() публичный Метод

Test whether sandbox disallows non-whitelisted functions

testDisallowsNonwhitelistedType() публичный Метод

Test whether sandbox disallows non-whitelisted class type

testDisallowsRequire() публичный Метод

Test whether sandbox disallows require keyword

testDisallowsRequireOnce() публичный Метод

Test whether sandbox disallows require_once keyword

testDisallowsTraits() публичный Метод

Test whether sandbox disallows traits
public testDisallowsTraits ( )

testHelloWorldEchoed() публичный Метод

Test whether sandbox echoes expected value

testHelloWorldReturned() публичный Метод

Test whether sandbox returns expected value

testMagicConstants() публичный Метод

Test whether sandbox disallows violating callbacks
public testMagicConstants ( )

testSandboxedStringsMimicStrings() публичный Метод

Test whether sandboxed strings do not cause conflicts with is_string, is_object, or is_scalar

testSandboxedStringsSatisfyIntval() публичный Метод

Test whether sandboxed strings do not cause conflicts with intval

testSettingAndUnsettingOptions() публичный Метод

testSettingAndUnsettingOptionsViaCompatibilityAPI() публичный Метод

testStaticTypeOverwriting() публичный Метод

testWhitelistMagicConstants() публичный Метод

Test whether sandbox disallows violating callbacks

Описание свойств

$sandbox защищенное свойство

protected PHPSandbox,PHPSandbox $sandbox
Результат PhpSandbox\PHPSandbox