PHP Класс Cascade\Tests\Config\Loader\ClassLoader\Resolver\ExtraOptionsResolverTest

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

Защищенные свойства (Protected)

Свойство Тип Описание
$reflected ReflectionClass Reflection class for which you want to resolve extra options
$resolver Cascade\Config\Loader\ClassLoader\Resolver\ExtraOptionsResolver ExtraOptions Resolver

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

Метод Описание
invalidOptionsProvider ( ) : array Data provider for testResolveWithInvalidOptions
optionsProvider ( ) : array Data provider for testResolveWithInvalidOptions
setUp ( ) Set up function
tearDown ( ) Tear down function
testConstructor ( ) Test the resolver contructor
testGenerateParamsHashKey ( ) Test the hsah key generation
testResolve ( ) Test resolving with valid options
testResolveWithCustomOptionHandler ( ) Test resolving with valid options
testResolveWithInvalidOptions ( array $invalidOptions ) Test resolving with invalid options. It should throw an exception.

Описание методов

invalidOptionsProvider() публичный метод

The order of the input options does not matter and is somewhat random. The resolution should reconcile those options and match them up with the closure param position
public invalidOptionsProvider ( ) : array
Результат array of arrays with expected resolved values and options used as input

optionsProvider() публичный метод

The order of the input options does not matter and is somewhat random. The resolution should reconcile those options and match them up with the closure param position
public optionsProvider ( ) : array
Результат array of arrays with expected resolved values and options used as input

setUp() публичный метод

Set up function
public setUp ( )

tearDown() публичный метод

Tear down function
public tearDown ( )

testConstructor() публичный метод

Test the resolver contructor
public testConstructor ( )

testGenerateParamsHashKey() публичный метод

Test the hsah key generation

testResolve() публичный метод

Test resolving with valid options
public testResolve ( )

testResolveWithCustomOptionHandler() публичный метод

Test resolving with valid options

testResolveWithInvalidOptions() публичный метод

Test resolving with invalid options. It should throw an exception.
public testResolveWithInvalidOptions ( array $invalidOptions )
$invalidOptions array Array of invalid options

Описание свойств

$reflected защищенное свойство

Reflection class for which you want to resolve extra options
protected ReflectionClass $reflected
Результат ReflectionClass

$resolver защищенное свойство

ExtraOptions Resolver
protected ExtraOptionsResolver,Cascade\Config\Loader\ClassLoader\Resolver $resolver
Результат Cascade\Config\Loader\ClassLoader\Resolver\ExtraOptionsResolver