Свойство | Тип | Описание | |
---|---|---|---|
$reflected | ReflectionClass | Reflection class for which you want to resolve extra options | |
$resolver | Constructor Resolver |
Метод | Описание | |
---|---|---|
invalidOptionsProvider ( ) : array | Data provider for testResolveWithInvalidOptions | |
missingOptionsProvider ( ) : array | Data provider for testResolveWithInvalidOptions. | |
optionsProvider ( ) : array | Data provider for testResolve | |
setUp ( ) | Set up function | |
tearDown ( ) | Tear down function | |
testConstructor ( ) | Test the resolver contructor | |
testHashToArgsArray ( ) | Test the hashToArgsArray function | |
testInitConstructorArgs ( ) | Test that constructor args were pulled properly | |
testResolve ( array $expectedResolvedOptions, array $options ) | Test resolving with valid options | |
testResolveWithInvalidOptions ( array $invalidOptions ) | Test resolving with invalid options. It should throw an exception. | |
testResolveWithMissingOptions ( array $incompleteOptions ) | Test resolving with missing/incomplete options. It should throw an exception. |
Метод | Описание | |
---|---|---|
getConstructorArgs ( ) : ReflectionParameter[] | Return the contructor args of the reflected class |
protected getConstructorArgs ( ) : ReflectionParameter[] | ||
Результат | ReflectionParameter[] | array of params |
public invalidOptionsProvider ( ) : array | ||
Результат | array | of arrays with expected resolved values and options used as input |
public missingOptionsProvider ( ) : array | ||
Результат | array | of arrays with expected resolved values and options used as input |
public optionsProvider ( ) : array | ||
Результат | array | of arrays with expected resolved values and options used as input |
public testHashToArgsArray ( ) |
public testInitConstructorArgs ( ) |
public testResolve ( array $expectedResolvedOptions, array $options ) | ||
$expectedResolvedOptions | array | Array of expected resolved options (i.e. parsed and validated) |
$options | array | Array of raw options |
public testResolveWithInvalidOptions ( array $invalidOptions ) | ||
$invalidOptions | array | Array of invalid options |
public testResolveWithMissingOptions ( array $incompleteOptions ) | ||
$incompleteOptions | array | Array of invalid options |
protected ReflectionClass $reflected | ||
Результат | ReflectionClass |