PHP Класс Cascade\Tests\Config\Loader\ClassLoader\FormatterLoaderTest

Автор: Raphael Antonmattei ([email protected])
Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

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

Метод Описание
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 ( )