diff --git a/tests/recordings/DiscoveryTest-testDefinitionListAsRecorded.yml b/tests/recordings/DiscoveryTest-testDefinitionListAsRecorded.yml index 25f4971..1e1dd9f 100644 --- a/tests/recordings/DiscoveryTest-testDefinitionListAsRecorded.yml +++ b/tests/recordings/DiscoveryTest-testDefinitionListAsRecorded.yml @@ -8,6 +8,7 @@ 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 @@ -15,6 +16,7 @@ values: $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 @@ -22,6 +24,7 @@ values: $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 @@ -29,6 +32,7 @@ values: $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 @@ -36,6 +40,7 @@ values: $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 @@ -43,6 +48,7 @@ values: $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 @@ -50,6 +56,7 @@ values: $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 @@ -57,6 +64,7 @@ values: $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 @@ -64,3 +72,4 @@ values: $specifity: 1 $adapterEgg: class: Ock\Egg\Egg\Egg_Construct + $class: Ock\Adaptism\SpecificAdapter\SpecificAdapter_Callback diff --git a/tests/recordings/ServicesTest-testServicesAsRecorded.yml b/tests/recordings/ServicesTest-testServicesAsRecorded.yml index bd80fe0..8e7a334 100644 --- a/tests/recordings/ServicesTest-testServicesAsRecorded.yml +++ b/tests/recordings/ServicesTest-testServicesAsRecorded.yml @@ -6,6 +6,23 @@ 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)' @@ -13,10 +30,21 @@ values: 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 diff --git a/tests/src/ServicesTest.php b/tests/src/ServicesTest.php index 79ce169..68f1fda 100644 --- a/tests/src/ServicesTest.php +++ b/tests/src/ServicesTest.php @@ -62,7 +62,7 @@ public function testTaggedServicesAsRecorded(): void { $report[$tag_name][$service_id] = $tags_info; } } - $this->assertAsRecorded($report, depth: 4); + $this->assertAsRecorded($report); } /**