PHP 클래스 Cascade\Tests\Config\Loader\ClassLoader\FormatterLoaderTest

저자: Raphael Antonmattei ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: theorchard/monolog-cascade

공개 메소드들

메소드 설명
handlerParamsProvider ( ) : array Data provider for testHandlers !\ Important note: just add values to this array if you need to test a newly added handler If one of your handlers calls more than one method you can add more than one entries
setUp ( ) Set up function
tearDown ( ) Tear down function
testHandlers ( string $class, string $optionName, mixed $optionValue, string $calledMethodName ) Test the extra option handlers
testHandlersExist ( ) Test that handlers exist

비공개 메소드들

메소드 설명
doTestMethodCalledInHandler ( string $class, string $methodName, mixed $methodArg, Closure $closure ) Tests that calling the given Closure will trigger a method call with the given param in the given class
getHandler ( string $class, string $optionName ) : Closure Check if the handler exists for a given class and option Also checks that it a callable and return it

메소드 상세

handlerParamsProvider() 공개 메소드

Data provider for testHandlers !\ Important note: just add values to this array if you need to test a newly added handler If one of your handlers calls more than one method you can add more than one entries
public handlerParamsProvider ( ) : array
리턴 array of array of args for testHandlers

setUp() 공개 메소드

Set up function
public setUp ( )

tearDown() 공개 메소드

Tear down function
public tearDown ( )

testHandlers() 공개 메소드

Test the extra option handlers
또한 보기: doTestMethodCalledInHandler
public testHandlers ( string $class, string $optionName, mixed $optionValue, string $calledMethodName )
$class string Class name
$optionName string Option name
$optionValue mixed Option value
$calledMethodName string Expected called method name

testHandlersExist() 공개 메소드

Test that handlers exist
public testHandlersExist ( )