PHP 클래스 DefaultConfigTest, PHPSandbox

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: Corveda/PHPSandbox

보호된 프로퍼티들

프로퍼티 타입 설명
$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