34
34
use CycloneDX \Core \Serialization \DOM \_BaseNormalizer ;
35
35
use CycloneDX \Core \Serialization \DOM \NormalizerFactory ;
36
36
use CycloneDX \Core \Serialization \DOM \Normalizers ;
37
- use CycloneDX \Core \Spec \Spec ;
37
+ use CycloneDX \Core \Spec \_SpecProtocol ;
38
38
use CycloneDX \Core \Spec \Version ;
39
39
use CycloneDX \Tests \_traits \DomNodeAssertionTrait ;
40
40
use DOMDocument ;
@@ -53,7 +53,7 @@ class BomNormalizerTest extends TestCase
53
53
54
54
public function testNormalize (): void
55
55
{
56
- $ spec = $ this ->createConfiguredMock (Spec ::class, ['getVersion ' => Version::v1dot2]);
56
+ $ spec = $ this ->createConfiguredMock (_SpecProtocol ::class, ['getVersion ' => Version::v1dot2]);
57
57
$ factory = $ this ->createConfiguredMock (
58
58
NormalizerFactory::class,
59
59
[
@@ -82,7 +82,7 @@ public function testNormalize(): void
82
82
83
83
public function testNormalizeComponents (): void
84
84
{
85
- $ spec = $ this ->createConfiguredMock (Spec ::class, ['getVersion ' => Version::v1dot2]);
85
+ $ spec = $ this ->createConfiguredMock (_SpecProtocol ::class, ['getVersion ' => Version::v1dot2]);
86
86
$ componentsNormalizer = $ this ->createMock (Normalizers \ComponentRepositoryNormalizer::class);
87
87
$ factory = $ this ->createConfiguredMock (
88
88
NormalizerFactory::class,
@@ -121,7 +121,7 @@ public function testNormalizeComponents(): void
121
121
public function testNormalizeMetadata (): void
122
122
{
123
123
$ spec = $ this ->createConfiguredMock (
124
- Spec ::class,
124
+ _SpecProtocol ::class,
125
125
[
126
126
'getVersion ' => Version::v1dot2,
127
127
'supportsMetadata ' => true ,
@@ -164,7 +164,7 @@ public function testNormalizeMetadata(): void
164
164
public function testNormalizeMetadataNotSupported (): void
165
165
{
166
166
$ spec = $ this ->createConfiguredMock (
167
- Spec ::class,
167
+ _SpecProtocol ::class,
168
168
[
169
169
'getVersion ' => Version::v1dot2,
170
170
'supportsMetadata ' => false ,
@@ -209,7 +209,7 @@ public function testNormalizeMetadataNotSupported(): void
209
209
public function testNormalizeDependencies (): void
210
210
{
211
211
$ spec = $ this ->createConfiguredMock (
212
- Spec ::class,
212
+ _SpecProtocol ::class,
213
213
[
214
214
'getVersion ' => Version::v1dot2,
215
215
'supportsDependencies ' => true ,
@@ -252,7 +252,7 @@ public function testNormalizeDependencies(): void
252
252
public function testNormalizeDependenciesOmitWhenEmpty (): void
253
253
{
254
254
$ spec = $ this ->createConfiguredMock (
255
- Spec ::class,
255
+ _SpecProtocol ::class,
256
256
[
257
257
'getVersion ' => Version::v1dot2,
258
258
'supportsDependencies ' => true ,
@@ -298,7 +298,7 @@ public function testNormalizeDependenciesOmitWhenEmpty(): void
298
298
299
299
public function testNormalizeExternalReferencesMergedIfUnsupportedMetadata (): void
300
300
{
301
- $ spec = $ this ->createConfiguredMock (Spec ::class, [
301
+ $ spec = $ this ->createConfiguredMock (_SpecProtocol ::class, [
302
302
'getVersion ' => Version::v1dot2,
303
303
'supportsMetadata ' => false ,
304
304
]);
@@ -351,7 +351,7 @@ public function testNormalizeExternalReferencesMergedIfUnsupportedMetadata(): vo
351
351
352
352
public function testNormalizeExternalReferencesOmittedWHenEmpty (): void
353
353
{
354
- $ spec = $ this ->createConfiguredMock (Spec ::class, [
354
+ $ spec = $ this ->createConfiguredMock (_SpecProtocol ::class, [
355
355
'getVersion ' => Version::v1dot2,
356
356
'supportsMetadata ' => false ,
357
357
]);
@@ -400,7 +400,7 @@ public function testNormalizeProperties(): void
400
400
'getProperties ' => $ this ->createConfiguredMock (PropertyRepository::class, ['count ' => 2 ]),
401
401
]
402
402
);
403
- $ spec = $ this ->createConfiguredMock (Spec ::class, [
403
+ $ spec = $ this ->createConfiguredMock (_SpecProtocol ::class, [
404
404
'getVersion ' => Version::v1dot4,
405
405
'supportsBomProperties ' => true ,
406
406
]);
@@ -439,7 +439,7 @@ public function testNormalizePropertiesOmitEmpty(): void
439
439
'getProperties ' => $ this ->createConfiguredMock (PropertyRepository::class, ['count ' => 0 ]),
440
440
]
441
441
);
442
- $ spec = $ this ->createConfiguredMock (Spec ::class, [
442
+ $ spec = $ this ->createConfiguredMock (_SpecProtocol ::class, [
443
443
'getVersion ' => Version::v1dot4,
444
444
'supportsBomProperties ' => true ,
445
445
]);
0 commit comments