PHP Class Kraken\_Unit\Log\Handler\HandlerTest

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

Public Methods

Method Description
createHandler ( ) : Handler
expect ( string $method, mixed[] $args = null, integer $times = 1 ) : Prophecy\Prophecy\MethodProphecy
prevent ( string $method, mixed[] $args = null ) : Prophecy\Prophecy\MethodProphecy
testApiConstructor_DoesNotThrowException ( )
testApiDestructor_DoesNotThrowException ( )
testApiGetFormatter_CallsMethodOnModel ( )
testApiGetModel_ReturnsModel ( )
testApiHandleBatch_CallsMethodOnModel ( )
testApiHandle_CallsMethodOnModel ( )
testApiIsHandling_CallsMethodOnModel ( )
testApiPopProcessor_CallsMethodOnModel ( )
testApiPushProcessor_CallsMethodOnModel ( )
testApiSetFormatter_CallsMethodOnModel ( )

Method Details

createHandler() public method

public createHandler ( ) : Handler
return Kraken\Log\Handler\Handler

expect() public method

public expect ( string $method, mixed[] $args = null, integer $times = 1 ) : Prophecy\Prophecy\MethodProphecy
$method string
$args mixed[]
$times integer
return Prophecy\Prophecy\MethodProphecy

prevent() public method

public prevent ( string $method, mixed[] $args = null ) : Prophecy\Prophecy\MethodProphecy
$method string
$args mixed[]
return Prophecy\Prophecy\MethodProphecy

testApiConstructor_DoesNotThrowException() public method

testApiDestructor_DoesNotThrowException() public method

testApiGetFormatter_CallsMethodOnModel() public method

testApiGetModel_ReturnsModel() public method

testApiHandleBatch_CallsMethodOnModel() public method

testApiHandle_CallsMethodOnModel() public method

testApiIsHandling_CallsMethodOnModel() public method

testApiPopProcessor_CallsMethodOnModel() public method

testApiPushProcessor_CallsMethodOnModel() public method

testApiSetFormatter_CallsMethodOnModel() public method