PHP 클래스 Cascade\Tests\Config\Loader\ClassLoader\Resolver\ExtraOptionsResolverTest

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

보호된 프로퍼티들

프로퍼티 타입 설명
$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