Skip to content

Commit

Permalink
Issue #101: Increase recording depth.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Nov 10, 2024
1 parent 04e5d29 commit 927cba5
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,59 +8,68 @@ values:
$specifity: 0
$adapterEgg:
class: Ock\Egg\Egg\Egg_Construct
$class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Callback
'Ock\Adaptism\Tests\Fixtures\Color\Colored::adapt':
class: Ock\Adaptism\AdapterDefinition\AdapterDefinition_Simple
$sourceType: Ock\Adaptism\Tests\Fixtures\Color\Colored
$resultType: null
$specifity: 0
$adapterEgg:
class: Ock\Egg\Egg\Egg_Construct
$class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Callback
'Ock\Adaptism\Tests\Fixtures\Color\Hex\HexColor::fromRgb':
class: Ock\Adaptism\AdapterDefinition\AdapterDefinition_Simple
$sourceType: Ock\Adaptism\Tests\Fixtures\Color\Rgb\RgbColorInterface
$resultType: Ock\Adaptism\Tests\Fixtures\Color\Hex\HexColor
$specifity: 0
$adapterEgg:
class: Ock\Egg\Egg\Egg_Construct
$class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Callback
'Ock\Adaptism\Tests\Fixtures\Color\NamedColor::fromHex':
class: Ock\Adaptism\AdapterDefinition\AdapterDefinition_Simple
$sourceType: Ock\Adaptism\Tests\Fixtures\Color\Hex\HexColorInterface
$resultType: Ock\Adaptism\Tests\Fixtures\Color\NamedColor
$specifity: 0
$adapterEgg:
class: Ock\Egg\Egg\Egg_Construct
$class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Callback
Ock\Adaptism\Tests\Fixtures\Countable\Countable_Traversable:
class: Ock\Adaptism\AdapterDefinition\AdapterDefinition_Simple
$sourceType: Traversable
$resultType: Ock\Adaptism\Tests\Fixtures\Countable\Countable_Traversable
$specifity: 0
$adapterEgg:
class: Ock\Egg\Egg\Egg_Construct
$class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Construct
'Ock\Adaptism\Tests\Fixtures\Value\LocalDateTimeString::fromDateTime':
class: Ock\Adaptism\AdapterDefinition\AdapterDefinition_Simple
$sourceType: DateTime
$resultType: Ock\Adaptism\Tests\Fixtures\Value\LocalDateTimeString
$specifity: 1
$adapterEgg:
class: Ock\Egg\Egg\Egg_Construct
$class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Callback
'Ock\Adaptism\Tests\Fixtures\Value\TimeConverter::convert':
class: Ock\Adaptism\AdapterDefinition\AdapterDefinition_Simple
$sourceType: Ock\Adaptism\Tests\Fixtures\Value\Timestamp
$resultType: Ock\Adaptism\Tests\Fixtures\Value\LocalDateTimeString
$specifity: 0
$adapterEgg:
class: Ock\Egg\Egg\Egg_Construct
$class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Callback
'Ock\Adaptism\Tests\Fixtures\Value\Timestamp::fromDateTime':
class: Ock\Adaptism\AdapterDefinition\AdapterDefinition_Simple
$sourceType: DateTime
$resultType: Ock\Adaptism\Tests\Fixtures\Value\Timestamp
$specifity: 1
$adapterEgg:
class: Ock\Egg\Egg\Egg_Construct
$class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Callback
'Ock\Adaptism\Tests\Fixtures\Value\Timestamp::fromDateTimeString':
class: Ock\Adaptism\AdapterDefinition\AdapterDefinition_Simple
$sourceType: Ock\Adaptism\Tests\Fixtures\Value\LocalDateTimeString
$resultType: Ock\Adaptism\Tests\Fixtures\Value\Timestamp
$specifity: 1
$adapterEgg:
class: Ock\Egg\Egg\Egg_Construct
$class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Callback
28 changes: 28 additions & 0 deletions tests/recordings/ServicesTest-testServicesAsRecorded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,45 @@ values:
class: Ock\Adaptism\AdapterDefinitionList\AdapterDefinitionList_Discovery
$factsIA:
class: Ock\ClassDiscovery\FactsIA\FactsIA_Concat
$factsIAs:
-
class: Ock\ClassDiscovery\FactsIA\FactsIA_InspectPackageNamespace
$reflectionClasses:
class: Ock\Adaptism\Tests\Fixtures\AdaptismTestNamespace
$packageInspector:
class: Ock\ClassDiscovery\Inspector\PackageInspector_FromClassInspector
$classInspector:
class: Ock\ClassDiscovery\Inspector\ClassInspector_Concat
$inspectors:
-
class: Ock\ClassDiscovery\Inspector\ClassInspector_Concat
$inspectors: { }
-
class: Ock\ClassDiscovery\Inspector\ClassInspector_Factories
$factoryInspector:
class: Ock\ClassDiscovery\Inspector\FactoryInspector_Concat
Ock\Adaptism\Inspector\FactoryInspector_AdapterAttribute: '(not found)'
Ock\Adaptism\Inspector\FactoryInspector_SelfAdapterAttribute: '(not found)'
Ock\Adaptism\Tests\Fixtures\AdaptismTestNamespace: '(not found)'
Ock\Adaptism\UniversalAdapter\UniversalAdapterInterface:
class: Ock\Adaptism\UniversalAdapter\UniversalAdapter
$specificAdapter:
class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_DispatchByType
$adapterMap:
class: Ock\Adaptism\AdapterMap\AdapterMap_DefinitionList
$realAdapterMap: null
$definitionList:
_ref: '[Ock\Adaptism\AdapterDefinitionList\AdapterDefinitionListInterface]'
$container:
_ref: '[Psr\Container\ContainerInterface]'
Ock\Egg\ParamToEgg\ParamToEggInterface:
class: Ock\Egg\ParamToEgg\ParamToEgg_Chain
$paramToEggs:
class: Symfony\Component\DependencyInjection\Argument\RewindableGenerator
$generator:
class: Closure
$count:
class: Closure
Ock\Egg\ParamToEgg\ParamToEgg_ParamTypeAsServiceId: '(not found)'
Psr\Container\ContainerInterface:
class: Symfony\Component\DependencyInjection\ContainerBuilder
Expand Down
2 changes: 1 addition & 1 deletion tests/src/ServicesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function testTaggedServicesAsRecorded(): void {
$report[$tag_name][$service_id] = $tags_info;
}
}
$this->assertAsRecorded($report, depth: 4);
$this->assertAsRecorded($report);
}

/**
Expand Down

0 comments on commit 927cba5

Please sign in to comment.