PHP Class Kraken\_Unit\Throwable\ThrowableProxyTest

Inheritance: extends Kraken\Test\TUnit
Show file Open project: kraken-php/framework

Public Methods

Method Description
assertString ( string $string )
createThrowableProxy ( Error | Exception | string[] | string $exceptionOrMessage, string[] | null $methods = null ) : ThrowableProxy | PHPUnit_Framework_MockObject_MockObject
testApiConstructor_CreatesInstance ( )
testApiConstructor_CreatesInstance_WhenErrorPassed ( )
testApiConstructor_CreatesInstance_WhenExceptionPassed ( )
testApiConstructor_CreatesInstance_WhenMessagePassed ( )
testApiConstructor_CreatesInstance_WhenStringArrayPassed ( )
testApiConstructor_CreatesInstance_WithPreviousElementBeingError ( )
testApiConstructor_CreatesInstance_WithPreviousElementBeingException ( )
testApiConstructor_CreatesInstance_WithPreviousElementBeingFrameworkError ( )
testApiDestructor_DoesNotThrowException ( )
testApiGetCode_ReturnsCode ( )
testApiGetFile_ReturnsFile ( )
testApiGetLine_ReturnsLine ( )
testApiGetMessage_ReturnsMessage ( )
testApiGetPrevious_ReturnsNull_WhenPreviousDoesNotExist ( )
testApiGetPrevious_ReturnsPrevious_WhenPreviousDoesExist ( )
testApiGetTraceAsString_ReturnsTraceAsString ( )
testApiGetTrace_ReturnsTrace ( )
testApiToString_ReturnsString ( )
testApiToThrowable_ReturnsOriginal ( )

Method Details

assertString() public method

public assertString ( string $string )
$string string

createThrowableProxy() public method

public createThrowableProxy ( Error | Exception | string[] | string $exceptionOrMessage, string[] | null $methods = null ) : ThrowableProxy | PHPUnit_Framework_MockObject_MockObject
$exceptionOrMessage Error | Exception | string[] | string
$methods string[] | null
return Kraken\Throwable\ThrowableProxy | PHPUnit_Framework_MockObject_MockObject

testApiConstructor_CreatesInstance() public method

testApiConstructor_CreatesInstance_WhenErrorPassed() public method

testApiConstructor_CreatesInstance_WhenExceptionPassed() public method

testApiConstructor_CreatesInstance_WhenMessagePassed() public method

testApiConstructor_CreatesInstance_WhenStringArrayPassed() public method

testApiConstructor_CreatesInstance_WithPreviousElementBeingError() public method

testApiConstructor_CreatesInstance_WithPreviousElementBeingException() public method

testApiConstructor_CreatesInstance_WithPreviousElementBeingFrameworkError() public method

testApiDestructor_DoesNotThrowException() public method

testApiGetCode_ReturnsCode() public method

testApiGetFile_ReturnsFile() public method

testApiGetLine_ReturnsLine() public method

testApiGetMessage_ReturnsMessage() public method

testApiGetPrevious_ReturnsNull_WhenPreviousDoesNotExist() public method

testApiGetPrevious_ReturnsPrevious_WhenPreviousDoesExist() public method

testApiGetTraceAsString_ReturnsTraceAsString() public method

testApiGetTrace_ReturnsTrace() public method

testApiToString_ReturnsString() public method

testApiToThrowable_ReturnsOriginal() public method