PHP Class Cascade\Tests\Config\Loader\ClassLoader\Resolver\ExtraOptionsResolverTest

Author: Raphael Antonmattei ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: theorchard/monolog-cascade

Protected Properties

Свойство Type Description
$reflected ReflectionClass Reflection class for which you want to resolve extra options
$resolver Cascade\Config\Loader\ClassLoader\Resolver\ExtraOptionsResolver ExtraOptions Resolver

Méthodes publiques

Méthode Description
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.

Method Details

invalidOptionsProvider() public méthode

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
Résultat array of arrays with expected resolved values and options used as input

optionsProvider() public méthode

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
Résultat array of arrays with expected resolved values and options used as input

setUp() public méthode

Set up function
public setUp ( )

tearDown() public méthode

Tear down function
public tearDown ( )

testConstructor() public méthode

Test the resolver contructor
public testConstructor ( )

testGenerateParamsHashKey() public méthode

Test the hsah key generation

testResolve() public méthode

Test resolving with valid options
public testResolve ( )

testResolveWithCustomOptionHandler() public méthode

Test resolving with valid options

testResolveWithInvalidOptions() public méthode

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

Property Details

$reflected protected_oe property

Reflection class for which you want to resolve extra options
protected ReflectionClass $reflected
Résultat ReflectionClass

$resolver protected_oe property

ExtraOptions Resolver
protected ExtraOptionsResolver,Cascade\Config\Loader\ClassLoader\Resolver $resolver
Résultat Cascade\Config\Loader\ClassLoader\Resolver\ExtraOptionsResolver